MicrosoftTranslator / DocumentTranslation

Command Line tool and Windows application for document translation, a local interface to the Azure Document Translation service for Windows, macOS and Linux.
Other
147 stars 34 forks source link

json files compatibility #120

Open johnfelipe opened 1 year ago

johnfelipe commented 1 year ago

may be will be a great addition:

im using this repo https://github.com/leolabs/json-autotranslate

en.zip

root@felipe:~/json-autotranslate# npx json-autotranslate -i ChatALL/src/i18n/locales -s azure -c blablabla,westus2 -m i18next
Found 1 target language(s):
-> es

🏭 Loading source files...
├── en.json (key-based)
└── Done

✨ Initializing Azure...
└── Done

🔍 Looking for key-value inconsistencies in source files...
└── No inconsistencies found

🔍 Looking for invalid keys in source files...
└── No invalid keys found

💬 Translating strings from en to es...
├── Translating en.json (11 changes from cache) (+152)
└── All strings have been translated.

🗂 Caching source translation files...
└── Translation files have been cached.

152 new translations have been added!

es.zip

chriswendt1 commented 1 year ago

Good idea. Thanks for the suggestion.

chriswendt1 commented 1 year ago

Hi @johnfelipe, The Azure Document Translation Service now translates JSON files natively, without a change to the client app. Did you try it? What do you see?