Repository navigation
fix(i18n): translate missing Russian native-chat strings for automations, imports, and goals - #48172
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
…ons, imports, and goals Adds Russian values for the components.native-chat keys under automationRun, automationSaved, automationResult, eventRow, importPlan, importDone, goal and goalControl that fell back to English in ru.json. goal.checks gets the _one/_few/_many/_other plural forms. Fixes stablyai#48173 Co-authored-by: Neil <[email protected]>
7e1635c to
36866c9
Compare
ELI5
With Orca set to Russian, the chat rows for automations, bot imports and goals still showed English text in the middle of a Russian screen. This adds the missing Russian text for those rows.
What Changed
Comes over,Import 2 items,Wait over,Instructions,Event,Open on GitHub,Created automation, ...). About 148 keys undercomponents.native-chat(automationRun,automationSaved,automationResult,eventRow,importPlan,importDone,goal,goalControl) had no entry inru.json, so i18next fell back to English.Будет перенесено,Импортировать (2),Ожидание закончилось,Инструкции,Событие,Открыть на GitHub,Автоматизация создана, ...).src/renderer/src/i18n/locales/ru.jsonchanges. New leaves are inserted next to theiren.jsonsiblings;goal.checksgets_one/_few/_many/_otherplural forms. Review follow-ups folded into the same commit: placeholder sentences reworded so an uninflected{{name}}reads naturally, the import button uses a count label (Импортировать ({{count}})),due/dueRanread as scheduled time (По плану), the GitHub event labels agree in gender with the pull request they describe (Пул-реквест открыт,Слит,Закрыт,Готов к проверке),workflow_finishedis fully translated, the paused automation status matches its row (Приостановлена), and the missinggettingUrlkey is added.Why
These rows show up in every Russian chat that runs an automation or imports a bot from another app. Filling the catalog is the only fix; no code needs to change. This continues the per-area locale series (#47920, #48093, #48096, #48098, #48100), keeping each area small enough to review.
Linked Issue
Fixes #48173
Visual Proof
Native chat fixtures rendered in the Russian UI by @yohangwak in #48172,
main(top) vs the branch (bottom). These were captured before the review wording tweaks listed above, so a few labels now read slightly differently (for example the import button isИмпортировать (2)rather thanИмпортировать элементы: 2). Text that stays English is fixture data or strings outside this batch.Testing
{{placeholder}}and<tag>setOn macOS, rebased onto current
main(28dfb5d):ru.jsonparses;pnpm verify:localization-catalogandpnpm verify:localization-catalogspass (ru: 19,761/24,813 translated).oxfmt --check, the anti-slop and code-quality oxlint configs,ast-grep scan, and the changed-code quality gate are clean (JSON only, no JS/TS changed).Performance
None, because only the Russian renderer catalog grows (+~7.6 KB, 1,464,443 -> 1,472,034 chars), parsed once when the Russian locale loads.
JSON.parseof the file measured 3.27 ms before vs 2.94 ms after (30-run average, within noise). No runtime path, polling, I/O or render work changes.Risk
Level: Low
Only Russian strings are added or reworded. If a word is off, Russian users see that word instead of English. A plain revert backs it out. The open #46107 (missing Russian desktop strings) overlaps on many of these keys and will need to keep or drop its values when it resolves the conflict.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Original fix by @yohangwak in #48172 (authorship preserved; squashed with review wording tweaks).
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred): targeted catalog and static gates run locally; full runs left to CI since only a locale JSON file changes