https://github.com/bjoernrave/ai-json-translator
This small application allows you to translate your JSON locales file or fill it based on the keys with the help of Chat-GPT
https://github.com/bjoernrave/ai-json-translator
chatgpt i18n json nextjs react typescript
Last synced: 11 months ago
JSON representation
This small application allows you to translate your JSON locales file or fill it based on the keys with the help of Chat-GPT
- Host: GitHub
- URL: https://github.com/bjoernrave/ai-json-translator
- Owner: BjoernRave
- Created: 2023-04-03T14:09:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T20:10:18.000Z (over 2 years ago)
- Last Synced: 2025-04-06T15:04:02.664Z (about 1 year ago)
- Topics: chatgpt, i18n, json, nextjs, react, typescript
- Language: TypeScript
- Homepage: https://ai-json-translator.vercel.app
- Size: 109 KB
- Stars: 15
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/BjoernRave/i18n-magic)
[Demo](https://ai-json-translator.vercel.app/)
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:
```json
{
"hello": "",
"world": ""
}
```
or
```json
{
"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