Repository navigation
fix(i18n): translate 2,252 missing French desktop strings for Bots and recent features - #51396
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
08458f5 to
6159d55
Compare
…nt features Add French values for 2,252 desktop catalog keys that fell back to English: bot connections, bot screens, sharing and access, Settings > Bots, automation bot targets, the browser annotate palette and cookie import, and other recent strings. Bot wording uses "chat", "Home" and "Échap" consistently with the rest of the French catalog. Fixes stablyai#51405 Co-authored-by: Neil <[email protected]>
6159d55 to
5b357f2
Compare
ELI5
With Orca set to Français, the Bots screens and other recent features still showed English. This PR adds the French text for those 2,252 strings.
What Changed
src/renderer/src/i18n/locales/fr.jsonhad no value, so i18next fell back to English inside French screens. Bot connections (webhooks, Composio, Google, Slack, GitHub, Linear, apps) had 804, Bots screens 608, bot sharing, access, groups and hosts 324, Settings → Bots 247, automation bot targets and events 70, the browser annotate palette, toolbar and cookie import 53, and other recent strings 112.fr.jsonandmobile/src/i18n/locales/fr.json. Product names (Orca, Slack, GitHub, Linear, Composio, MCP), code and file names stay as written. A review pass made bot wording use «chat», «Home» and «Échap» the same way the rest of the French catalog does.fr.json. 34 of them are_manyplural forms that copy the_othertext, which is whatsyncLocalePluralFormsproduces. No existing French value changes. No English string, code or other locale changes. The 37 removed lines exist only because a trailing comma was added.Why
These strings appear on screens that are otherwise French, so the English lines stand out. Each language gets its own PR and touches only its own catalog. The built-in bot template and skill strings (
bots.templates,bots.templateSkills) are left to #47391, and the status bar usage tooltips are left to #24634.Linked Issue
Fixes #51405
Visual Proof
N/A. Only catalog text changes. There is no layout or code change, and the existing catalog verifiers check the placeholder and tag sets. Sample i18next output with the app language set to Français:
mainsidebar.botsSplit.resizebrowser.cookieImport.notice.importedCountsettings.bots.fileChangedOnDiskbots.row.deleteTitlebots.slack.setup.checkingbrowser.toolbar.annotateModeTesting
Checks run on macOS, rebased onto current
mainand squashed to one commit:pnpm verify:localization-catalogspasses. fr.json coverage went from 23,072 leaves onmainto 24,832 of 25,127 translated keys.pnpm verify:localization-coverageandpnpm verify:localization-protected-copypass.oxfmt --checkand the changed-code quality gate pass. The JSON parses.Performance
Only the French desktop catalog changes. It grows from 1.74 MB to 1.88 MB and is fetched lazily through
?url, only when French is selected. One-timeJSON.parsewent from 2.75 ms to 2.92 ms (best of 20, Node). No hot path, polling, or per-item work changes.Risk
Level: Low
Only French text is added. A wrong word would show to French users in place of the English fallback. A plain revert undoes the change.
Review
Agent skill upstream boundary
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred): catalog verifiers ran locally, and CI covers the rest.Original fix by @yohangwak in #51396.