Skip to content
项目

关于

借助 AI 协助本地化网站。

人工智能与机器学习

这些数字如何统计

可以做什么

  • Traslate your locale files with better experience.
  • A web editor for better editing and viewing experience.
  • Export multiple locale files at once.
  • Seperate large json file into small chunks to avoid ChatGPT breaking json. (WIP: the service seems slow now, and sometimes break the limit of vercel FaaS, I am working on it.)

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

chatgpt-i18n

Translate your locale files with AI Assistance.

Welcome to the ChatGPT + i18n app. This app is designed to help you translate your locale files with ease. Whether you are translating an application, website, or any other project that requires localization, it will make the process faster and more efficient.

I build this app because I was tired of using Google Translate to translate my locale files. I wanted to use a more efficient and accurate translation tool. ChatGPT, however, always break my json and cannot translate large contents. So I build this app to solve these problems. Hope you enjoy it.

Demo

Demo on Vercel translate

chatgpt-i18n demo

download multi locale files

export-locale-files

Features

  • Traslate your locale files with better experience.
  • A web editor for better editing and viewing experience.
  • Export multiple locale files at once.
  • Seperate large json file into small chunks to avoid ChatGPT breaking json. (WIP: the service seems slow now, and sometimes break the limit of vercel FaaS, I am working on it.)

Deploy

Requires Node.js 22. The backend uses OpenAI SDK 7 with OpenRouter.

Step 1. Create .env with your OpenRouter key for the backend APIs

OPENROUTER_API_KEY=<your OpenRouter key>
OPENROUTER_MODEL=openai/gpt-5.4-mini

Browser translations use the key saved in Settings, independently of the backend environment. Select OpenRouter, enter your OpenRouter API key, and save. The default model is openai/gpt-5.4-mini; you can enter another OpenRouter OpenAI model ID in Model. Existing OpenAI settings are migrated to OpenRouter with the old key cleared. The default model runs with reasoning disabled for translation. Saved GPT-3.5 OpenRouter settings upgrade automatically; custom model IDs are preserved. Azure settings remain supported. Switching providers clears the key.

Integration follows the OpenRouter quickstart.

Step 2. Install dependencies

yarn install --frozen-lockfile

Step 3. Build App

# forntend
npm run build
# backend
npm run server:build

Development

npm run server
# vercel dev (this contains both frontend and backend)
# localhost:3000

Validation

yarn test
yarn build

Tests mock OpenRouter responses and do not make paid model calls.

探索相关项目

加载中…