How to Automatically AI Translate i18next JSON Files

Follow this guide to learn how to translate your source i18next JSON file into any language. Works with any framework supported by i18next, including React, Next.js, Angular, Flutter, Svelte, and more.

i18next makes it incredibly easy to localize your app into the languages of your users. But it doesn't help with generating the actual translations. Most developers outsource this work, but with the rapid progression of AI, you have another option. LLMs are great at processing text, and specially-curated neural models, like DeepL, have taken AI translations to the next level. Read below to learn how to take advantage of these advances in translating your app with i18next.

In today's globalized world, providing your app in multiple languages is essential. Using i18next JSON files makes this process more manageable. If you haven't created an i18next JSON file yet, start with this guide.

Once you have your i18next JSON file ready, follow these steps to automatically translate it using i18nowAI.

Step 1: Create an Account at i18nowAI

First, head over to www.i18now.ai and create an account by clicking the button in the top-right corner. This platform leverages DeepL, the world's most accurate and nuanced AI translation engine, which outperforms Google Translate in delivering high-quality translations.

Step 2: Follow the Tutorial Flow

After creating your account, follow the steps on the tutorial flow presented on the screen. Here’s a quick guide to help you:

  1. Click on the "Upload JSON" button
  2. Select the language of your JSON (this should be the native language of your app)
  3. Either paste in or upload your source JSON
  4. Click "Save", and that's it!

Step 3: Create a Translation

  1. Initiate the Translation: Click on "Create a translation".
  2. Enter the Language Names: A prompt will appear to enter the names of the languages you want to translate to. You can add as many languages as you need.
  3. Manage Your Translation Quota: If the characters included for free aren't sufficient, purchase additional characters as needed.
  4. Start Your Translations: After selecting your languages and managing your quota, click "Submit".

There are more than 30 languages available for translation on i18nowAI, including:

Arabic     Bulgarian     Chinese     Czech     Danish     Dutch     English    Estonian     Finnish     French     German     Greek     Hungarian     Indonesian     Italian     Japanese     Korean     Latvian     Lithuanian     Norwegian     Polish     Portuguese     Romanian     Russian     Slovak     Slovenian     Spanish     Swedish     Turkish     Ukrainian

Step 4: Wait for Completion

You'll be redirected to the homescreen where you will be notified once the translations are finished. This process might take a few minutes depending on the size of your file and the number of languages selected. Once the translations are completed, you'll be able to download the JSON files to import to your app.

Step 5: Download and Integrate Translations

  1. Download Translated Files: On the homescreen, once notified, click the Download button for each translated file.
  2. Integrate Translations into Your App: Drag and drop these files into your app’s localization directory.
  3. Configure i18next: Ensure your app’s configuration points to these new JSON files for the respective languages.

And that's it! You’ve successfully translated your i18next JSON files into multiple languages using i18nowAI.

Benefits of Using i18nowAI

  • Accuracy and Nuance: Leveraging DeepL, i18nowAI provides more accurate and nuanced translations than other free translation tools like Google Translate.
  • Ease of Use: The process is streamlined and user-friendly, making it easy for developers of all levels to use.
  • Scalability: Whether you need one language or a dozen, i18nowAI can handle your needs effortlessly.
  • Easily Sync Changes: When you make changes to your app's JSON, you can upload the new version, and i18nowAI will provide you with the option to re-translate only the text that changed.
  • No Subscription Required: Pay only for what you use, and don't worry about recurring charges. i18nowAI tracks usage by the character.
  • No Cloud Hosting Needed: Translated JSON files belong to you. There's no complicated cloud hosting that you need to figure out.

By following these steps, you can expand your app's reach and provide a better user experience for non-English speakers. Start translating your app today and make it accessible to a global audience!

Helpful Links

If you have any questions or run into issues, feel free to leave a comment or contact i18nowAI support by clicking the chat icon in the bottom right at www.i18now.ai.