Skip to content

fix(i18n): translate 148 missing Spanish native-chat strings for automations, imports, and goals - #48098

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

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

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

With Orca set to Spanish, parts of the chat about automations, bot imports and goals still showed English, because those sentences had never been translated. This PR adds the missing Spanish text, so those rows read fully in Spanish. Only the words change, not how anything works.

What Changed

  • Before: in the Spanish UI, 148 keys under components.native-chat (automationRun, automationSaved, automationResult, eventRow, importPlan, importDone, goal, goalControl) had no entry in es.json, so i18next fell back to English (Comes over, Import 2 items, Wait over, Merged, 3 checks, the English no-goal sentence, and so on).
  • After: they read in Spanish (Se importa, Importar 2 elementos, Espera terminada, Fusionada, 3 comprobaciones, ...).
  • Mechanism: 149 new leaves in src/renderer/src/i18n/locales/es.json: the 148 keys plus goal.checks_many, the Spanish CLDR "many" plural form. Each one sits after the same sibling it follows in en.json. No existing Spanish value, English string or other locale changes.
  • Review fixes on top of the contributor's translation:
    • Pull request states (pr_merged, pr_closed, pr_ready) now use feminine forms (Fusionada, Cerrada, Lista para revisión) to match "Solicitud de extracción abierta".
    • automationRun.cancelled became "Cancelada" to agree with "espera".
    • GitHub workflow runs say "flujo de trabajo", like the rest of the catalog.
  • automationSaved.gettingUrl is left out on purpose. The bot screens PR i18n: translate bot screens in all supported languages #45740 adds it.

Why

These rows appear in every Spanish chat that runs an automation or imports a bot, and they showed up as English blocks on an otherwise Spanish screen. The wording reuses terms already in es.json (automatización, ejecución, objetivo, solicitud de extracción, «» quotes, tú) so the new text matches the screens around it.

Linked Issue

Fixes #48099

Visual Proof

Native chat fixtures in the Spanish UI, main (top) vs this branch (bottom). The contributor captured these, before the gender and glossary review fixes. Text that stays English is fixture data or comes from 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

Testing

  • I manually tested these changes locally. I reproduced the missing keys with an en/es flatten diff, and an i18next probe (lng=es, fallbackLng=en) rendered English on main and Spanish on this branch.
  • Automated tests added/updated, or explained why not below. None added: the change is catalog values only, and the verify:localization-catalog(s) gates check each value's {{placeholder}} and <tag> set against English.
  • Every added test fails without this change and avoids the test anti-patterns. No tests added.

Checks run on macOS, on main 1c46ba5:

  • Key diff: 149 keys added, 0 changed, 0 removed, 0 orphans, 0 placeholder or tag mismatches.
  • Probe output: "3 comprobaciones", "1000000 comprobaciones" (many form), "Fusionada", "Cancelada", and "Cambia «X» para que " with its trailing space kept.
  • Catalog gates: verify:localization-catalog, verify:localization-catalogs (es 19793/24748), verify:localization-protected-copy and verify:localization-runtime-catalog pass.
  • Repair script: repair-locale-catalog --locale es, run in memory, changes none of the added values.
  • Targeted vitest: bot-template-text, bot-app-lines, bot-failure-codes and audit-localization-coverage pass (4 files, 16 tests).
  • Static checks: oxfmt --check, ast-grep and the changed-code quality gate are clean.

Performance

None, because only the Spanish desktop catalog grows, and it is parsed once when Spanish loads. es.json goes from 1,464,923 to 1,472,526 bytes (+0.5%). Over 30 runs, JSON.parse takes a median of 2.55 ms on main and 2.39 ms on this branch, so the difference is within noise. Lookups, polling, I/O and rendering are unchanged.

Risk

Level: Low

Only Spanish text is added. If a word is off, Spanish users see that word instead of English. A plain revert backs it out.

Review

  • Cross-platform: text only.
  • SSH/remote: not affected, because remotes do not read renderer catalogs.
  • Mobile: not touched, because the phone app has its own catalog.

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

Original fix by @yohangwak in #48098.

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). Targeted checks ran locally. CI covers the full suite.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Se añaden traducciones al español para comprobaciones de objetivos, resultados de automatización en chats, importación de bots y ejecuciones de automatización. También se añaden etiquetas para resúmenes de automatización.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 3ee21

This adds missing Spanish text for automations, imports and goals and changes no behavior. The translation wording has not had native-speaker review, which can be handled as follow-up copy polish. No merge-blocking risk remains.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #48099 requires Spanish values for the 148 components.native-chat keys (importPlan, importDone, automationRun, automationSaved, automationResult, eventRow, goal, goalControl) that are missing … Provide a readable diff or blob of src/renderer/src/i18n/locales/es.json at the reviewed head. Confirm that every key listed under components.native-chat for the named groups has a non-English value in es.json. Confirm that each value…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: adding Spanish translations for 148 missing native-chat strings covering automations, imports and goals. It follows conventional commit style and is specific. The titl…
Description check Passed The description follows the template closely. It has an ELI5, a before/after What Changed section, a Why section, a linked issue (Fixes #48099), visual proof with light and dark before/after images, d…
Out of Scope Changes check Passed The PR summary and raw summary list one changed file, src/renderer/src/i18n/locales/es.json. The added values are Spanish strings for components.native-chat keys named in #48099 (import plan, auto…
Full details: Title check

Explanation

The title names the main change: adding Spanish translations for 148 missing native-chat strings covering automations, imports and goals. It follows conventional commit style and is specific. The title says 148 strings while the description says 149 leaves were added. That gap is a counting difference, not an unrelated claim, so the title still matches the change.

Full details: Description check

Explanation

The description follows the template closely. It has an ELI5, a before/after What Changed section, a Why section, a linked issue (Fixes #48099), visual proof with light and dark before/after images, detailed testing notes, a performance statement, a risk level and revert plan, an AI disclosure, and the review and checklist sections. The Visual Proof uses a table of images and the PR objectives confirm the attached images. The unchecked lint box is explained in the text: lint fails on a max-lines error that already exists on main. The full test suite is left to CI, which the author states openly. The description is complete and does not need changes.

Full details: Out of Scope Changes check

Explanation

The PR summary and raw summary list one changed file, src/renderer/src/i18n/locales/es.json. The added values are Spanish strings for components.native-chat keys named in #48099 (import plan, automation run, saved automation, automation result, event row, goal). The PR states that no other locale, no existing Spanish value, and no English string changes. The raw summary says the existing goal-stop message is only repositioned within goalControl, with unchanged text. No runtime, test, or other-file change is reported, so no unrelated change is shown. The diff itself could not be read, so this verdict relies on the reported file list and summary.

Full details: Linked Issues check

Explanation

Issue #48099 requires Spanish values for the 148 components.native-chat keys (importPlan, importDone, automationRun, automationSaved, automationResult, eventRow, goal, goalControl) that are missing from es.json. The PR summary and raw summary report 149 added leaves in src/renderer/src/i18n/locales/es.json, with example values for listed keys. The reviewed-head diff for es.json could not be read because changed blobs are missing from the checkout. Key-level coverage, placeholder and tag preservation, and placement therefore cannot be confirmed from source. The author-reported verify:localization-catalog results are not independently re-run here. The AmethystLiang copy suggestions in the PR objectives are wording preferences, not issue coding requirements, and are not assessed here. The issue's exclusions (workers, connections, messages, bot screens) are not required by this PR.

Resolution

Provide a readable diff or blob of src/renderer/src/i18n/locales/es.json at the reviewed head. Confirm that every key listed under components.native-chat for the named groups has a non-English value in es.json. Confirm that each value keeps the same {{placeholder}} and &lt;tag&gt; set as its en.json source. Re-run pnpm verify:localization-catalog at the reviewed head to confirm the reported result.

  • 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: c8360671-8679-4781-a80f-13f7c97ab8ab
Commits

Reviewing files that changed from the base of the PR and between c46f47c and 3ee210a.

Files selected for processing: 1

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

  • src/renderer/src/i18n/locales/es.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.

@AmethystLiang

Copy link
Copy Markdown
Contributor

A copy review found a few places where the Spanish preview and result could be clearer:

  • importPlan.comes → Se importará
  • importPlan.changed → Se importará con cambios
  • importPlan.stays → Se quedará en {{app}}
  • importDone.title → {{name}} se importó desde {{app}}. “Se trasladó” can imply the item was moved out of the original app.
  • automationRun.what.github.pr_opened → Pull request abierta, consistent with the established term and shorter in the event row.

Please include the pending webhook URL label from #48100 as well.

…mations, imports, and goals

Adds 149 es.json leaves under components.native-chat (automationRun,
automationSaved, automationResult, eventRow, importPlan, importDone, goal,
goalControl): 148 keys plus the goal.checks_many Spanish plural form.
Pull request event states agree with "solicitud de extracción", the
cancelled wait label agrees with "espera", and GitHub workflow runs use
"flujo de trabajo" like the rest of the catalog.

Fixes stablyai#48099

Co-authored-by: Neil <neil@stably.ai>
@AmethystLiang

Copy link
Copy Markdown
Contributor

Thanks for the Spanish translations. #48186 covers the pending webhook label and remaining import and event wording and carries your co-author credit.

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]: Spanish UI: 148 native chat strings for automations, imports, and goals fall back to English

3 participants