Repolode
ObservedObserver

ObservedObserver/chatgpt-i18n

A web app that uses AI models to translate i18n locale files, with a web editor and multi-locale export.

Open-source alternative to:Google Translate

Stars
802
Forks
97
Open issues
18
Last commit
23 days ago

What is it?

chatgpt-i18n is a web app for translating locale files used in website and application localization. You upload a JSON locale file, choose target languages, and the app translates the content with an LLM through OpenRouter, with Azure settings also supported.

The app addresses two problems with translating JSON directly through ChatGPT: the model often breaks the JSON structure, and large files exceed what it can handle in one request. To work around this, the app splits large JSON files into smaller chunks before translation. It also includes a web editor for reviewing and adjusting translated text, and it can export several locale files at once.

The backend is a Node.js 22 service that uses the OpenAI SDK with OpenRouter, configured through environment variables or the in-app Settings page. The project is written in TypeScript and can be run locally with a dev server or deployed on Vercel.

Key features

  • 01Translates JSON locale files into target languages with an LLM via OpenRouter.
  • 02Splits large JSON files into chunks to reduce structure breakage.
  • 03Includes a web editor for viewing and editing translations.
  • 04Exports multiple locale files at once.
  • 05Supports Azure provider settings alongside OpenRouter.

Use cases

  • Localizing a website or app's JSON-based i18n resource files into several languages.
  • Producing a first-draft translation that a developer or translator then reviews and edits.
  • Generating locale files for multiple languages in one batch export.

Quick start

  1. 1

    Create a .env file with your OpenRouter API key and model

  2. 2

    Install dependencies (requires Node.js 22)

    yarn install --frozen-lockfile
  3. 3

    Build the frontend

    npm run build
  4. 4

    Start the development server, then open localhost:3000

    npm run server

Things to know

  • Requires Node.js 22 and a paid OpenRouter API key for translations.
  • The author notes the service can be slow and sometimes exceeds Vercel FaaS limits.
  • Licensed under AGPL-3.0, a copyleft license that requires sharing modified network-served source code.

In collections

Topics

FAQ

What is chatgpt-i18n?
A web app that uses AI models to translate i18n locale files, with a web editor and multi-locale export. chatgpt-i18n is a web app for translating locale files used in website and application localization. You upload a JSON locale file, choose target languages, and the app translates the content with an LLM through OpenRouter, with Azure settings also supported.
Is chatgpt-i18n free to use? What license does it have?
chatgpt-i18n is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
Is chatgpt-i18n still maintained?
Actively maintained. The last commit to chatgpt-i18n was on Oct 16, 2026.
What can I use chatgpt-i18n for?
Localizing a website or app's JSON-based i18n resource files into several languages. Producing a first-draft translation that a developer or translator then reviews and edits. Generating locale files for multiple languages in one batch export.
How do I install chatgpt-i18n?
Create a .env file with your OpenRouter API key and model Install dependencies (requires Node.js 22): yarn install --frozen-lockfile Build the frontend: npm run build Start the development server, then open localhost:3000: npm run server
Where can I get chatgpt-i18n?
The source code and installation instructions are on GitHub: https://github.com/ObservedObserver/chatgpt-i18n

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects