Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 685 Bytes

index.md

File metadata and controls

22 lines (19 loc) · 685 Bytes

JSON translate file

This is a simple tool to translate any .json file, without changing its keys

Before you need to execute

docker run -ti --name local-libretranslate -p 5000:5000 libretranslate/libretranslate --load-only=en,es,pt

For this example only load the pairs of languages:

More info in https://github.com/LibreTranslate/LibreTranslate

Run

Add files to translate into dir files, all files need to be .json

go run json_translate/main.go "json_translate" "es" "en"

The output files are located into dir output