Skip to content

fix(i18n): translate missing Portuguese native-chat strings for automations, imports, and goals - #48170

Merged
nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/pt-native-chat-a
Nov 24, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/pt-native-chat-a

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Before: in the Portuguese UI these rows read in English, e.g. Comes over, Import 2 items, Wait over, Instructions, Event, Open on GitHub, Created automation, Recent runs, Getting the URL…, 3 checks. Their keys under components.native-chat (automationRun, automationSaved, automationResult, eventRow, importPlan, importDone, goal, goalControl) had no entry in pt.json, so i18next fell back to English.
  • After: they read in Portuguese (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.
  • Mechanism: new leaves in src/renderer/src/i18n/locales/pt.json only, each placed after its en.json sibling, so the diff is additions plus two trailing commas. No English string, other locale, or existing Portuguese value changes.
  • Wording reuses the Brazilian Portuguese already in 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 read Pull request aberto, Mesclado, Fechado, Pronto para revisão). Calendar is Agenda, 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.

Light Dark
Import plan card Import plan card light Import plan card dark
Automation run, opened Automation run, opened light Automation run, opened dark
Chat event rows (first row) Chat event rows light Chat event rows dark

The review follow-up (event label gender, Agenda, gettingUrl) postdates those screenshots, so here is the i18next runtime resolution of the touched keys, main vs this branch:

key (options) main this PR
automationSaved.gettingUrl Getting the URL… Obtendo a URL…
automationSaved.recentRuns Recent runs Execuções recentes
automationRun.calendar Calendar Agenda
automationRun.what.github.pr_opened Pull request opened Pull request aberto
automationRun.dueRan (10:00, 10:02) due 10:00, ran 10:02 prevista para 10:00, executada em 10:02
importPlan.selected (2 of 5) 2 of 5 selected · keys and logins are never copied 2 de 5 selecionados · chaves e logins nunca são copiados
importDone.title (Bot, Slack) Bot came over from Slack Bot foi importado de Slack
goal.checks (1 / 3) 1 check / 3 checks 1 verificação / 3 verificações
automationResult.sentWithMany (4) Sent with 4 automation results Enviado com 4 resultados de automação

Testing

  • I manually tested these changes locally: resolved the touched keys through i18next against both catalogs (table above), including plural counts 0, 1, 3 and 1,000,000.
  • Automated tests added/updated, or explained why not below: none added; these are catalog values covered by verify:localization-catalog(s), which checks that each value keeps its English placeholder and tag set.
  • Every added test fails without this change and avoids the test anti-patterns: no tests added.

On macOS, rebased on current main:

  • pnpm verify:localization-catalog, pnpm verify:localization-catalogs and pnpm verify:localization-extraction pass (pt 20,290/24,794).
  • oxfmt --check, the anti-slop and code-quality oxlint configs, ast-grep and 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.parse of 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred): locale JSON only; targeted localization checks pass locally, full runs left to CI

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Brazilian Portuguese locale adds strings for chat goal checks and automation results. It also adds labels for import-plan states and completion, automation-run details and statuses, and automation summaries, webhook setup, recent runs, and errors.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 0849e

This adds missing Portuguese translations for import, automation, and goal UI strings that previously fell back to English. It changes no runtime behavior. The remaining risk is wording quality, since no native speaker has reviewed the translations.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed [#48171] requires Portuguese values for the missing components.native-chat keys in the importPlan, importDone, automationRun, automationSaved, automationResult, eventRow, goal, and goalControl group…
Out of Scope Changes check Passed The only changed file is pt.json. Every added leaf sits in components.native-chat under the keys named in #48171 (importPlan, importDone, automationRun, automationSaved, automationResult, eventRow…
Title check Passed The title names the main change: adding Portuguese translations for missing native-chat strings covering automations, imports, and goals. It matches the pt.json additions in the summary. The 'fix(i18n…
Description check Passed The description follows the template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #48171), Visual Proof with before/after tables, Testing with checkboxes, Performance with a measured r…
Full details: Linked Issues check

Explanation

[#48171] requires Portuguese values for the missing components.native-chat keys in the importPlan, importDone, automationRun, automationSaved, automationResult, eventRow, goal, and goalControl groups. The whole-PR diff of src/renderer/src/i18n/locales/pt.json (merge base 8f5a819 to head 0849eed) adds these leaves: importPlan (11 keys), importDone (6), automationRun (about 90, including waitOver, scheduled, instructions, event, openOnGitHub, copyInstructions, ciPassed-equivalent what.github.ci_passed, showAll), automationSaved (17, including recentRuns, noRuns, runNow, deleted), automationResult (6), eventRow (4), and goal (checks_one/other/many, last-check). The issue's listed strings (for example Comes over, Import {{count}} items, Wait over, Recent runs, Sent with {{count}} automation results, Last goal check) have Portuguese values with matching placeholders. Limits: the exact 147-key count was not recounted, and no goalControl hunk is visible in the diff, so that group was not confirmed. Other native-chat groups named in the issue as separate work are not added, as the issue requires. Localization catalog checks are author-reported and were not rerun here.

Full details: Out of Scope Changes check

Explanation

The only changed file is pt.json. Every added leaf sits in components.native-chat under the keys named in #48171 (importPlan, importDone, automationRun, automationSaved, automationResult, eventRow, goal). The existing automationSaved.openFullPage value and the existing goal values are kept. The extra automationSaved leaves (gettingUrl, webhookHint, agent, onAgent) belong to the same saved-automation row that the issue scopes. No code, tests, or other locales changed in the reviewed diff, so no unrelated change was found.

Full details: Title check

Explanation

The title names the main change: adding Portuguese translations for missing native-chat strings covering automations, imports, and goals. It matches the pt.json additions in the summary. The 'fix(i18n)' prefix and the 95-character length are acceptable, though the title is long.

Full details: Description check

Explanation

The description follows the template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #48171), Visual Proof with before/after tables, Testing with checkboxes, Performance with a measured rationale, Risk with level Low and a revert path, and the Review, Agent skill boundary, Notes, and Checklist sections. The AI Disclosure section is empty, which the template allows for internal contributors. The Visual Proof section relies on external image links, which is acceptable.

  • 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: a77114a6-2ed4-435f-844c-a8fdc72a57fe
Commits

Reviewing files that changed from the base of the PR and between b783342 and 0849eed.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/pt.json
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/i18n/locales/pt.json

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

…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>
@nwparker
nwparker force-pushed the yohangwak/pt-native-chat-a branch from b783342 to 0849eed Compare November 24, 2026 09:42
@nwparker nwparker changed the title fix(i18n): translate 147 missing Portuguese native-chat strings for automations, imports, and goals fix(i18n): translate missing Portuguese native-chat strings for automations, imports, and goals Nov 24, 2026
@nwparker
nwparker merged commit cf863fe into stablyai:main Nov 24, 2026
55 of 56 checks passed
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.

[Bug]: Portuguese UI: 147 native chat strings for automations, imports, and goals fall back to English

2 participants