Skip to content

i18n: translate bot screens in all supported languages - #45740

Open
AmethystLiang wants to merge 1 commit into
mainfrom
AmethystLiang/bot-i18n-orca-final
Open

AmethystLiang wants to merge 1 commit into
mainfrom
AmethystLiang/bot-i18n-orca-final

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Bot screens (bot settings, Who can ask, access requests, connectors, apps, webhooks, items, groups, sharing, templates, Google setup) showed English even when Orca was set to another language. This adds the missing translations.

Files Added Deleted Net
Test 0 0 0 0
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​30010 $\color{#cf222e}{\Huge{\mathbf{−}}}$​175 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29835

What Changed

  • Before: the bot UI already used translation keys, but the German, Spanish, French, Japanese, Korean, Portuguese, Russian, Turkish, Simplified and Traditional Chinese catalogs had almost no entries for them, so bot screens fell back to English.
  • After: each language's catalog gains 2,204–2,279 desktop entries and 527–544 mobile entries (the counts differ by plural forms; Russian adds few/many). Desktop Simplified Chinese gains only 75, because fix(i18n): show the Bots UI in Simplified Chinese #45750 already translated the rest.
  • Only new catalog entries are added; no existing translation changes. Placeholders and inline markup match English in every entry.
  • Desktop Simplified Chinese bot keys: main (with fix(i18n): show the Bots UI in Simplified Chinese #45750) has 1,991 of 2,009 translated; this PR adds the remaining 18, so 2,009 of 2,009.
  • Russian chat rows use a short "Ждут: N" waiting label so titles keep the same width as in English.

Still English after this PR

  • In Simplified Chinese, no desktop Bots entries fall back to English after this PR. Other languages weren't measured key by key: entries that other open translation work is covering were left to it, so some lines (for example one sentence under Who can ask) may stay English in those languages until that work lands.
  • Built-in bot template names and descriptions. They come from template data rather than translation keys, so they need a source change; the template screens around them (categories, buttons, dialogs) are translated (Simplified Chinese: 37 of 37 keys).

Why

The fix lives in the catalogs: the source already calls the right keys.

Linked Issue

Refs #45646 (keep open: the items under "Still English after this PR" above remain)

Visual Proof

Seeded component fixture screenshots at this head are attached in a comment below (Who can ask at 350/280 px, chat rows normal/narrow/usage-limit, sidebar; en/de/ja/ru/zh).

Testing

  • pnpm verify:localization-catalogs, pnpm verify:mobile-localization, pnpm verify:localization-coverage, oxfmt --check: pass
  • pnpm check:changed on the previous head 1a04920 (merge-base 8789dc6): all 32 checks passed on Node 24.19.0 / pnpm 12.18.0 and on Node 26.6.0. That head was resynced onto main 1355cc4 to resolve conflicts with fix(i18n): show the Bots UI in Simplified Chinese #45750; the rerun at this head is pending.
  • Script check: only key additions, no changed or removed values, placeholders and tags match English.
  • Component fixtures rendered in de, ru, ja, zh and en at normal and narrow widths.

Risk

Level: Low. Catalog data only. Worst case is an awkward translation in one language; English is unchanged. Back out with a plain revert.

Performance

Catalog size grows (2,204–2,279 entries per desktop locale except Simplified Chinese at 75, 527–544 per mobile locale; +123–179 KB per desktop locale JSON, +3 KB for Simplified Chinese, and +25–36 KB per mobile locale JSON). Desktop catalogs load as per-language URL assets and mobile catalogs via per-locale dynamic import, both only for the selected language and outside the boot bundle, so only users of that language load the extra entries once; no new runtime code, IPC or polling.

@AmethystLiang

Copy link
Copy Markdown
Contributor Author

Seeded component fixture screenshots at 1a04920 (dark theme). Before = English, after = translated. One Who can ask sentence and "Home Chat" stay English: those keys are held by other open translation work (see "Still English after this PR").

Who can ask, 350 px: en (280 px) / zh / de / ja

en Who can ask 280
zh Who can ask 350
de Who can ask 350
ja Who can ask 350

Who can ask, 280 px (zh)

zh Who can ask 280

Chat rows: en narrow / ru narrow / ru normal / zh normal (Russian uses the short "Ждут: N" label)

en chats narrow
ru chats narrow
ru chats normal
zh chats normal

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes add translated bot-related interface text to mobile and renderer locale files across multiple languages. The strings cover bot creation and settings, integrations, automations, chats, activity, groups, and work items. Mobile locales also add chat notices, pasted-text labels, common load errors, and home-screen bot states. No application behavior or public declarations changed.

Merge Risk: Low · up to c4c86

This adds translations for bot screens in many languages and has no performance cost. Several labels are still mistranslated, for example an API-key action named as a keyboard key and a few open or revoke actions worded as states. These are low-impact wording fixes that can be made before or shortly after merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "i18n: translate bot screens in all supported languages" matches the main change. The PR adds missing desktop and mobile locale catalog entries for bot screens in the German, Spanish, French…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the purpose clearly: bot screens showed English in non-English locales because catalogs lacked entries, and the PR adds those entries across ten languages on desktop and mobil…
Full details: Title check

Explanation

The title "i18n: translate bot screens in all supported languages" matches the main change. The PR adds missing desktop and mobile locale catalog entries for bot screens in the German, Spanish, French, Japanese, Korean, Portuguese, Russian, Turkish, and Chinese catalogs. The title is concise, specific, and follows the repository's conventional prefix style. Minor caveat: some strings remain English and the title does not mention that, but it is not required to cover every detail.

Full details: Description check

Explanation

The description explains the purpose clearly: bot screens showed English in non-English locales because catalogs lacked entries, and the PR adds those entries across ten languages on desktop and mobile. It covers What Changed, Why, Linked Issue (Refs #45646, with a note that it stays open), Visual Proof (fixture screenshots described in a comment), Testing (verification scripts and fixture renders), and Risk (Low, with a plain revert as the back-out path). The Linked Issue section uses 'Refs' rather than 'Fixes', which is acceptable because the author explains the remaining gaps. The template's Testing checkboxes are not ticked, and the Performance section is extra. The AI Disclosure, Review, and Agent skill upstream boundary sections are absent, and the Risk section does not name a level in the template's exact format beyond 'Low'. The description is largely complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 04b02eb0-f5c7-4cce-aa8b-b2c5c5ae224a
Commits

Reviewing files that changed from the base of the PR and between 1a04920 and c4c86b5.

Files selected for processing: 20

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 19

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.

Minor comments: 21

mobile/src/i18n/locales/ja.json: 1

4623-4623: Minor · Functional Correctness · Quick win

Correct the Slack reaction label.

リ操作 does not identify a Slack reaction. Use リアクション so users can recognize the trigger.

mobile/src/i18n/locales/de.json: 1

727-727: Minor · Functional Correctness · Quick win

Use an action label for the open-offer button.

The offer card shows say('open') as a button label while the offer is open. The German value "Offen" means "open" as a state. Use the German action form instead, which matches the infinitive labels used elsewhere in the block, such as "Bearbeiten".

Suggested fix

-        "open": "Offen",
+        "open": "Öffnen",
mobile/src/i18n/locales/zh-Hant.json: 2

4482-4482: Minor · Functional Correctness · Quick win

Identify the host as the destination.

With a host named Mac, this says “open Mac at the following location,” rather than “open on Mac.” Use “在 {{name}} 上開啟” so users can identify the destination host.


5017-5017: Minor · Functional Correctness · Quick win

Label the open action as an action.

“開啟中” means “opening” in progress. Use “開啟” for the action that opens the relevant location.

mobile/src/i18n/locales/zh.json: 4

860-860: Minor · Functional Correctness · Quick win

Identify the memory as added.

“额外” means “extra,” not “added.” Use “已添加” so the memory card identifies the change.


5303-5303: Minor · Functional Correctness · Quick win

Identify the host as the destination.

With a host named Mac, this says “open Mac at the following location,” rather than “open on Mac.” Use “在 {{name}} 上打开” so users can identify the destination host.


5787-5787: Minor · Functional Correctness · Quick win

Describe additional items, not files.

This item-group control says it will show {{count}} more files. Use “再显示 {{count}} 个” or name the items so users know what the control displays.


5838-5838: Minor · Functional Correctness · Quick win

Label the open action as an action.

“开放” describes an open or available state, not an action to open the relevant location. Use “打开”.

src/renderer/src/i18n/locales/de.json: 1

25514-25514: Minor · Functional Correctness · Quick win

Label the API-key action correctly.

“Taste” means a keyboard key. Use “Schlüssel hinzufügen” so users can identify the action for adding their Composio API key.

src/renderer/src/i18n/locales/es.json: 1

26094-26094: Minor · Functional Correctness · Quick win

Label the API-key action correctly.

“Tecla” means a keyboard key. Use “Añadir clave” so users can identify the action for adding their Composio API key.

src/renderer/src/i18n/locales/fr.json: 1

26115-26115: Minor · Functional Correctness · Quick win

Label the API-key action correctly.

“Touche” means a keyboard key. Use “Ajouter une clé” so users can identify the action for adding their Composio API key.

src/renderer/src/i18n/locales/ja.json: 1

26309-26309: Minor · Functional Correctness · Quick win

Name the Slack reaction trigger.

“リ操作” does not identify a Slack reaction. Use “Slack のリアクション時” so users can select the intended trigger.

src/renderer/src/i18n/locales/pt.json: 1

26653-26653: Minor · Functional Correctness · Quick win

Label the API-key action correctly.

“Tecla” means a keyboard key. Use “Adicionar chave” so users can identify the action for adding their Composio API key.

src/renderer/src/i18n/locales/ru.json: 1

26266-26266: Minor · Functional Correctness · Quick win

Reverse the Russian import direction in updateDraft.

The Russian bots.import.updateDraft text says to move new items from the old bot into the source application. The English text and the other locales say to bring them over from that application. The draft is passed to the Orca bot's home tab, so a user who sends it can ask the wrong bot to move items the wrong way.

Keep the placeholders and change the word order so the source application comes after the old bot's name, as in English.

Suggested fix

-      "updateDraft": "Перенести всё новое из {{name}} в {{app}}.",
+      "updateDraft": "Перенести всё новое от {{name}} из {{app}}.",
src/renderer/src/i18n/locales/tr.json: 2

24580-24580: Minor · Functional Correctness · Quick win

Label the person-removal action correctly.

This label says “remove {{name}} folder” in the people-access list. It should say “remove {{name}}” so users can identify the action that removes a person.


25656-25656: Minor · Functional Correctness · Quick win

Label this as an API-key action.

“Tuş ekle” means “add a keyboard key,” not “add an API key.” Use “Anahtar ekle” so users can find the Composio key action.

src/renderer/src/i18n/locales/zh-Hant.json: 3

24885-24885: Minor · Functional Correctness · Quick win

Describe Google access as revoked, not restored.

Both strings use “復原,” which means “restore.” The action revokes Orca’s Google access. Use “撤銷” so users can distinguish revocation from restoring access.

Also applies to: 24889-24889


24622-24622: Minor · Functional Correctness · Quick win

Identify the webhook key in the copy action.

These strings say “issue code,” but the action copies the webhook key. Use “金鑰” so users can find and confirm the credential copy action.

Also applies to: 24686-24686


25171-25171: Minor · Functional Correctness · Quick win

Label this as an API-key action.

“新增按鍵” means “add a button/key,” not “add an API key.” Use “新增金鑰” for the Composio key action.

src/renderer/src/i18n/locales/zh.json: 2

26373-26373: Minor · Functional Correctness · Quick win

Remove “files” from these expansion labels.

These controls show more people, workspaces, chats, or items. Each label instead says “show {{count}} more files.” Use a context-appropriate noun, or omit the noun, so users can identify what each control expands.

Also applies to: 26397-26397, 27795-27795, 27967-27967


27342-27342: Minor · Functional Correctness · Quick win

Label this as an API-key action.

“添加按键” means “add a keyboard key,” not “add an API key.” Use “添加密钥” for the Composio key action.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a3471565-09dc-4322-a0f1-86045682289b
Commits

Reviewing files that changed from the base of the PR and between 6eef653 and 1a04920.

Files selected for processing: 20

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Adds missing German, Spanish, French, Japanese, Korean, Portuguese,
Russian, Turkish, Simplified and Traditional Chinese translations for
bot screens on desktop and mobile. Catalog additions only; keys held
by other in-flight translation work are left untouched.
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/bot-i18n-orca-final branch from 1a04920 to c4c86b5 Compare November 20, 2026 20:27
@AmethystLiang

Copy link
Copy Markdown
Contributor Author

Replying to the translation review:

For both Chinese bots.link.openOn notes, name comes from choices[0].bot.name. The picker options below provide the available computers. The existing titles mean “open this named bot at the following location,” which matches that flow, so I’m keeping both translations.

The five cited desktop Chinese expansion/API-key values are already corrected in the current catalog. The remaining accepted wording fixes are prepared and will be included before merge. I’ll link the published correction commit after validation and re-check all feedback on that head.

This was referenced Nov 26, 2026
joei4cm added a commit to joei4cm/orca that referenced this pull request Nov 26, 2026
…trings

Settings surfaces that landed after the current backfill wave was cut:
the terminal reading/search limit rows, the native-chat usage-limit
continue card, chat CLI-agent names, group hook validation, Jira board
column reorder, the bots deep-link error, appearance theme labels, and
(Russian) the workspace port-scan server notices and toast fallbacks.
Skips bots.googleSetup.otherAccount, already covered by stablyai#45740.

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant