Repository navigation
fix(i18n): translate missing Portuguese native-chat strings for automations, imports, and goals - #48170
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
…ations, imports, and goals With the Portuguese UI, the native-chat rows for automation runs, saved automations, automation results, event rows, bot import plans and goals fell back to English because their keys had no entry in pt.json. Add the missing leaves, using the Brazilian Portuguese terms already in pt.json (PR/automation event labels follow the existing masculine "pull request" usage, "Agenda" for calendar), and add automationSaved.gettingUrl. Fixes stablyai#48171 Co-authored-by: Neil <neil@stably.ai>
b783342 to
0849eed
Compare
ELI5
With Orca set to Portuguese, the chat rows for automations, bot imports and goals still showed English (the import plan card, the automation run row and its details, the saved-automation row, automation results, and the goal check line). This adds the Portuguese text for those rows.
What Changed
Comes over,Import 2 items,Wait over,Instructions,Event,Open on GitHub,Created automation,Recent runs,Getting the URL…,3 checks. Their keys undercomponents.native-chat(automationRun,automationSaved,automationResult,eventRow,importPlan,importDone,goal,goalControl) had no entry inpt.json, so i18next fell back to English.Será importado,Importar 2 itens,Espera encerrada,Instruções,Evento,Abrir no GitHub,Automação criada,Execuções recentes,Obtendo a URL…,3 verificações). pt coverage goes to 20,290 of 24,794 keys.src/renderer/src/i18n/locales/pt.jsononly, each placed after itsen.jsonsibling, so the diff is additions plus two trailing commas. No English string, other locale, or existing Portuguese value changes.pt.json: automação, execução (run), objetivo (goal),Rótulos, and the masculine "pull request" used elsewhere in the catalog (so GitHub event labels readPull request aberto,Mesclado,Fechado,Pronto para revisão). Calendar isAgenda, matching the existing calendar wording. Placeholders ({{what}},{{count}},{{name}}, ...) and tags are kept as-is.Why
These rows appear in every Portuguese chat that runs an automation or imports a bot, and they were English blocks on an otherwise Portuguese screen. Adding catalog values is the whole fix; no code path changes. This continues the per-area locale series (#47920, #48093, #48096, #48098, #48100), kept small so each area is easy to review.
Linked Issue
Fixes #48171
Visual Proof
Fixture renders from #48170 in the Portuguese UI,
main(top) vs this change (bottom). Text that stays English is fixture data (PR titles, instructions, plan items) or strings outside this batch.The review follow-up (event label gender,
Agenda,gettingUrl) postdates those screenshots, so here is the i18next runtime resolution of the touched keys,mainvs this branch:automationSaved.gettingUrlautomationSaved.recentRunsautomationRun.calendarautomationRun.what.github.pr_openedautomationRun.dueRan(10:00,10:02)importPlan.selected(2 of 5)importDone.title(Bot, Slack)goal.checks(1 / 3)automationResult.sentWithMany(4)Testing
verify:localization-catalog(s), which checks that each value keeps its English placeholder and tag set.On macOS, rebased on current
main:pnpm verify:localization-catalog,pnpm verify:localization-catalogsandpnpm verify:localization-extractionpass (pt 20,290/24,794).oxfmt --check, the anti-slop and code-quality oxlint configs,ast-grepand the changed-code quality gate are clean (no JS/TS changes).Performance
None, because only the Portuguese catalog grows (+7.3 KB, ~0.5%), parsed once when the Portuguese catalog loads. Measured
JSON.parseof the whole file, 200 interleaved runs: main 2.26 ms median / 2.49 ms p95, this PR 2.29 ms / 2.65 ms. No render, polling, I/O or subprocess work changes.Risk
Level: Low
Only Portuguese text is added. If a word is off, Portuguese users see that word instead of English. A plain revert backs it out. The open full-catalog pt-BR PR #47026 also adds these keys; whichever lands second resolves the conflict on these lines.
Review
Original fix by @yohangwak in #48170 (authorship preserved); maintainer follow-up aligned the GitHub event labels and calendar with the existing pt glossary and added
automationSaved.gettingUrl.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Text only: no platform, SSH/remote or mobile impact (remotes and the phone app do not read renderer catalogs).
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred): locale JSON only; targeted localization checks pass locally, full runs left to CI