json-translate-ai

1.0.1 • Public • Published

AI JSON Language Translator

Quickly translate your JSON Language files into the languages you want with AI.

NPM Version NPM Downloads NPM Downloads NPM License

Video Example

Watch the video

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.

Author

License

MIT

Package Sidebar

Install

npm i json-translate-ai

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

172 kB

Total Files

6

Last publish

Collaborators

  • miracsengonul