Skip to content

This small application allows you to translate your JSON locales file or fill it based on the keys with the help of Chat-GPT

Notifications You must be signed in to change notification settings

BjoernRave/ai-json-translator

Repository files navigation

Translate or fill the empty strings of your JSON locales with the help of Chat-GPT

If you are looking for a CLI-option which you can integrate into your development flow, checkout out my other project: i18n-magic

Demo

To get this running either:

  • create a .env file with your OPENAI_KEY
  • paste your key into the provided Textfield

Wit this small application you can paste in your locales JSON file, which might look somehing like this:

{
  "hello": "",
  "world": ""
}

or

{
  "hello": "Hello",
  "world": "World"
}

Depending on the mode you choose it will either:

  • Try to fill the empty strings based on the name of the key
  • Translate the given values into the desired language

About

This small application allows you to translate your JSON locales file or fill it based on the keys with the help of Chat-GPT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published