A simple web-based tool to translate i18next JSON resource files using the Google Cloud Translation API.
- Translate complete i18next JSON files while preserving structure
- Support for nested JSON objects
- Secure API key handling with local storage
- Copy-to-clipboard functionality
- Source and target language specification
- Error handling and validation
- Get a Google Cloud Translation API key:
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Cloud Translation API
- Create credentials (API key)
npx http-server .
- Open the HTML file in your web browser
- Enter your Google Cloud Translation API key in the top field
- Paste your source JSON in the left textarea
- Specify the source language code (e.g., 'en' for English)
- Specify the target language code (e.g., 'es' for Spanish)
- Click the "Translate" button
- Use the "Copy Result" button to copy the translated JSON
Use ISO 639-1 language codes such as:
- 'en' (English)
- 'es' (Spanish)
- 'fr' (French)
- 'de' (German)
- 'ja' (Japanese)
- etc.
The API key is stored locally in your browser and is only sent to Google's servers for translation requests.
Created by Asadbek Karimov
- GitHub: asadbek064
- Email: [email protected]
- Website: asadk.dev
This project is licensed under the MIT License
Made with ❤️ for the i18next community