- Notifications
You must be signed in to change notification settings - Fork0
AI-powered file translator for PHP, JSON, and plain text formats. Translates language files using OpenRouter AI via Docker interface. Ideal for Laravel, Chrome Extensions, and multilingual projects.
wonchoe/ai-php-json-files-language-translator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⚠️ Before you start: You must haveDocker Desktop installed if you're on Windows or another operating system. This project won’t work without Docker.
This is anAI-powered file translator built for:
- PHP language array files (e.g., Laravel translations)
- JSON files (chome extension language files etc)
- All other formats (PHP, TXT, HTML, XML, etc.)
It uses modern AI models viaOpenRouter API to automatically translate files in bulk, with full control over concurrency, batching, retries, and model selection.
git clone https://github.com/wonchoe/ai-php-json-files-language-translator.gitcd ai-php-json-files-language-translatorBuild.BAT
(Or double-clickBuild.BAT if you're on Windows.)
StartServer.BAT
(Or just double-clickStartServer.BAT.)
- Place your files in the
input/folder - Open the interface at
http://localhost:3000 - Select thefile type:
PHP ArraysJSONPlain Text / Other
- Choose one or moretarget languages (
uk,fr,de, or comma-separated:uk,fr,de) - Enter yourOpenRouter API key
- Click the 🟦START TRANSLATION button
📝 Translated files will appear in theoutput/ folder.
/input ← source files to translate/output ← translated output files/app ← Node.js translation logicInside the browser you can configure:
- File type
- Target languages
- AI model
- API keys
- Max concurrency, retry delay, error threshold, and batch size
After clickingSTART TRANSLATION, the system will translate allinput/ files and save them inoutput/.
| Type | Examples |
|---|---|
| PHP Arrays | .php |
| JSON | .json |
| Plain/Other | .txt,.html,.xml,.yml,.md, etc. |
✅ Works great for translatingChrome Extension language files (
_locales/.../messages.json) for SEO localization and international Chrome Web Store presence.
Supports all models available viaOpenRouter.ai, including:
google/gemini-2.0-flash-lite-001openai/gpt-3.5-turboanthropic/claude-3-haiku
- Laravel / PHP developers
- App & web developers working with localization files
- SEO experts working on Chrome extensions & multilingual apps
- Anyone who wants to bulk-translate structured files using AI
This project was built to automate the translation of large-scale language files with fine-grained control and blazing speed using OpenRouter-powered AI.
About
AI-powered file translator for PHP, JSON, and plain text formats. Translates language files using OpenRouter AI via Docker interface. Ideal for Laravel, Chrome Extensions, and multilingual projects.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
