fix(i18n): translate AI settings (OpenRouter + AI Execution Mode) — were EN placeholders#129
Conversation
…ere EN placeholders The OpenRouter section and the AI Execution Mode keys were shipped with English placeholder values in every non-English locale (i18n:check only verifies key parity, not translation), so the settings showed English even when the app language was e.g. German. Translates settings.openRouter.* (49 keys) and the still-English settings.aiMode.* (mode names, descriptions, indicator tooltips, active label) into de/es/fr/it/pt/el/ja/zh — ~62 keys per locale. Brand/format keys intentionally kept English (OpenRouter, sk-or-v1-…, model ids, and loanwords like "Cloud"/"Eco"). ar/he remain documented English-fallback RTL stubs. Bundles rebuilt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
@CodeAnt-AI review |
|
CodeAnt AI is running the review. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Sequence DiagramThis PR localizes the AI execution mode and OpenRouter settings texts across non-English locales, affecting how users configure AI modes and OpenRouter connectivity while keeping the underlying behavior the same. sequenceDiagram
participant User
participant SettingsUI
participant AppBackend
participant OpenRouter
User->>SettingsUI: Open AI settings screen
SettingsUI-->>User: Render AI mode and OpenRouter options with localized text
User->>SettingsUI: Choose AI execution mode and save
SettingsUI->>AppBackend: Persist selected AI mode preference
User->>SettingsUI: Enter OpenRouter API key and run test connection
SettingsUI->>AppBackend: Validate and store encrypted API key
AppBackend->>OpenRouter: Send test request using stored key
OpenRouter-->>AppBackend: Return connection status and model info
AppBackend-->>SettingsUI: Update status and hints in user language
Generated by CodeAnt AI |
|
CodeAnt AI finished reviewing your PR. |
|
CodeAnt AI finished running the review. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
User description
Problem
The OpenRouter settings section and the AI Execution Mode keys were shipped with English placeholder values in every non-English locale.
i18n:checkonly verifies key parity, not translation, so it stayed green — but the settings showed English even when the app language was e.g. German (user-reported).48/49
settings.openRouter.*and 25/28settings.aiMode.*values were identical to English across all non-EN locales.Fix
Real translations for
settings.openRouter.*(49) + the still-Englishsettings.aiMode.*(mode names, descriptions, indicator tooltips/labels, active label) into de/es/fr/it/pt/el/ja/zh (~62 keys/locale).OpenRouter,sk-or-v1-…, model ids, and loanwords (Cloud/Eco).ar/heremain documented English-fallback RTL stubs (per CLAUDE.md).pnpm run i18n:check(2639 keys × 11 locales, parity ✅).i18n-only change — no code, no new keys, no suppressions.
🤖 Generated with Claude Code
CodeAnt-AI Description
Translate AI settings and OpenRouter controls in more languages
What Changed
Impact
✅ Clearer AI settings in non-English languages✅ Fewer English placeholders in translated app screens✅ Easier OpenRouter setup for multilingual users💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.