AI JSON Language Translator
Quickly translate your JSON Language files into the languages you want with AI.
Video Example
Installation
Globally via npm
$ npm install -g json-translate-ai
Getting Started
If you want to start the translation in the source JSON file, add a new key
"translate_from_here"
just above the key from which you want to start.
For example:
"translate_from_here": "",
"footer": {
"message": "This is a footer message"
}
Above, the translation will start from the "footer"
key.
CLI Usage
$ json-translate-ai -s en -t de -k OPENAI_API_KEY
or
$ json-translate-ai --source en --target de --key OPENAI_API_KEY
Parameters
Parameter | Description |
---|---|
-s | --source: Source language (default: 'en') |
-t | --target: Target language (default: 'de') |
-k | --key: OpenAI API Key (required) |
Contributing
If you find any issues or have suggestions for improvement, please open an issue or create a pull request.