Skip to content

YongHeeK/InkLocalizer.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InkLocalizer.jl

Localizer for Inkle ink script

Example

Istallation

using Pkg 
Pkg.add("https://github.com/yongheekim-dev/InkLocalizer.jl")

run

using InkLocalizer
data = joinpath(@__DIR__, "data/TheIntercept.json")

a, b = InkLocalizer.localize(data)

output = joinpath(@__DIR__, "data/TheIntercept_localized.json")
localkeys = joinpath(@__DIR__, "data/TheIntercept_localkeys.json")
write(output, JSON.json(a))
write(localkeys, JSON.json(b, 2))

Output

It will produce

{
  "$TheIntercept.json.b.1": "IN DEBUG MODE!",
  "$TheIntercept.json.b.2": "Beginning...",
  "$TheIntercept.json.b.3": "Framing Hooper...",
  "$TheIntercept.json.b.4": "In with Hooper...",
  "$TheIntercept.json.start.5": "They are keeping me waiting.",
  ......
}

all the values within original json is replaced with `$TheIntercept.json ...`

About

Localizer for Inkle ink script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages