Skip to content

fix(i18n): translate AI settings (OpenRouter + AI Execution Mode) — were EN placeholders#129

Merged
qnbs merged 1 commit into
mainfrom
fix/ai-settings-localization
Jun 14, 2026
Merged

fix(i18n): translate AI settings (OpenRouter + AI Execution Mode) — were EN placeholders#129
qnbs merged 1 commit into
mainfrom
fix/ai-settings-localization

Conversation

@qnbs

@qnbs qnbs commented Jun 14, 2026

Copy link
Copy Markdown
Owner

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:check only 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/28 settings.aiMode.* values were identical to English across all non-EN locales.

Fix

Real translations for settings.openRouter.* (49) + the still-English settings.aiMode.* (mode names, descriptions, indicator tooltips/labels, active label) into de/es/fr/it/pt/el/ja/zh (~62 keys/locale).

  • Brand/format keys intentionally kept English: OpenRouter, sk-or-v1-…, model ids, and loanwords (Cloud/Eco).
  • ar/he remain documented English-fallback RTL stubs (per CLAUDE.md).
  • Bundles rebuilt via 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

  • Replaced English placeholder text in the AI mode and OpenRouter settings with translated labels, descriptions, tooltips, and status messages
  • Localized the active mode label, connection checks, model selection text, API key prompts, and circuit breaker messages across the updated locales
  • Kept product names, model IDs, and other fixed terms in English where they should remain unchanged

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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

…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>
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
storycraft-studio Ready Ready Preview, Comment Jun 14, 2026 4:42am

@codeant-ai

codeant-ai Bot commented Jun 14, 2026

Copy link
Copy Markdown

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 ·
Reddit ·
LinkedIn

@qnbs

qnbs commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

@CodeAnt-AI review

@codeant-ai

codeant-ai Bot commented Jun 14, 2026

Copy link
Copy Markdown

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 ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files label Jun 14, 2026
@codeant-ai

codeant-ai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Sequence Diagram

This 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
Loading

Generated by CodeAnt AI

@codeant-ai

codeant-ai Bot commented Jun 14, 2026

Copy link
Copy Markdown

CodeAnt AI finished reviewing your PR.

@codeant-ai

codeant-ai Bot commented Jun 14, 2026

Copy link
Copy Markdown

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 ·
Reddit ·
LinkedIn

@qnbs
qnbs merged commit c3fcf12 into main Jun 14, 2026
26 of 27 checks passed
@qnbs
qnbs deleted the fix/ai-settings-localization branch June 14, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant