yarn add translate-json-file
npx translate-json-file@latest --help
npx translate-json-file@latest
npx translate-json-file@latest --input-file <input-file> --output-file <output-file> --language <language>
{
"scripts": {
"translate": "translate-json-file --input-file <input-file> --output-file <output-file> --language <language>"
}
}
- Kannada
- French
- Spanish
- Afrikaans
- Irish
- Albanian
- Italian
- Arabic
- Japanese
- Azerbaijani
- Basque
- Korean
- Bengali
- Latin
- Belarusian
- Latvian
- Bulgarian
- Lithuanian
- Catalan
- Macedonian
- Chinese Simplified
- Malay
- Chinese Traditional
- Maltese
- Croatian
- Norwegian
- Czech
- Persian
- Danish
- Polish
- Dutch
- Portuguese
- English
- Romanian
- Esperanto
- Russian
- Estonian
- Serbian
- Filipino
- Slovak
- Finnish
- Slovenian
- Galician
- Swahili
- Georgian
- Swedish
- German
- Tamil
- Greek
- Telugu
- Gujarati
- Thai
- Haitian Creole
- Turkish
- Hebrew
- Ukrainian
- Hindi
- Urdu
- Hungarian
- Vietnamese
- Icelandic
- Welsh
- Indonesian
- Yiddish
- Tested for Kannada, French and Spanish. May not work for other languages. Please raise an issue if you find any.
- The translation is done using Google Translate. So, the quality of the translation depends on the quality of Google Translate.
- The translation is done using the
en
language. So, the translation may not be accurate for languages other than English.