Skip to content

fix(i18n): translate the phone's remaining Bots strings in every language - #46323

Merged
AmoabaKelvin merged 1 commit into
mainfrom
n21-l10n-mobile
Nov 21, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
n21-l10n-mobile

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

With the phone set to a language other than English, most of the Bots screens still showed English. Team PR #45740 translates about half of those strings. This PR adds the rest, so with both merged the phone's Bots screens are fully translated in all ten languages.

Files Added Deleted Net
Test 0 0 0 0
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5535 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5524

What Changed

  • Phone catalogs mobile/src/i18n/locales/<locale>.json gain the bot strings that neither main nor i18n: translate bot screens in all supported languages #45740 has: 464 entries each in de, ja, ko and tr, 465 in zh-Hant, 462 in zh, 473 in es, fr and pt (plus the _many plural forms), and 482 in ru (plus _few/_many). They cover webhooks, tools, import, first screen, groups, settings, the bot picture, hand-to-bot and template pages. Four strings outside bots.* that the bot screens read are included too (session.header.items, session.tabBar.tabCount, session.tabBar.hint, common.loadError.generic).
  • Only new entries. No existing translation changes and no code changes.
  • Missing phone bot entries per locale, before → after: de/ja/ko/tr 910 → 446, es/fr 927 → 454, pt 926 → 453, ru 944 → 462, zh 907 → 445, zh-Hant 910 → 445. Every entry still missing is one i18n: translate bot screens in all supported languages #45740 adds (checked key by key against its head), so once i18n: translate bot screens in all supported languages #45740 merges, none are left.

Why

The phone screens already call these keys. The strings were just never added to the catalogs.

Where the desktop already has the same key with the same English (in #45740's desktop catalogs or on main), this PR copies that value, so the phone and the desktop use the same wording (about 250 per locale). About 130 more per locale reuse the desktop's wording for identical English, and Codex translated the remaining 60 to 99 per locale against #45740's terminology. A second Codex pass checked every reused and new value against the English and the phone screen that shows it. It caught things like "Group" as a heading coming out as the verb ("Gruppieren"), plural verb agreement, and "Runs" on the tool page, which labels the launch command, not run history. Everything went through apply-translation-delta.mjs (placeholder checks plus the per-locale policy), pointed at the phone catalog folder.

Gap-fill only, so this doesn't duplicate #45740. Full coverage needs #45740 merged.

Linked Issue

Refs #45646

Visual Proof

Phone Import → "Another app…" steps and the webhook Rotate key page, rendered from the real components with the real catalogs (web harness, 390 px).

Russian before Russian after
German before German after Japanese after

Testing

  • pnpm check:changed (including mobile localization and coverage) and pnpm verify:localization-catalogs pass.

  • Recounted missing bot keys on fresh origin/main right before pushing.

  • Rendered two phone Bots screens in de, ja and ru (above) to check the plural forms ("3 ожидающих вызова", "12 элементов"), placeholders and wrapping.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below (catalog data only; the existing localization verifiers cover placeholders, plural families and coverage)

  • Every added test fails without this change and avoids the test anti-patterns

Performance

None, because this only adds catalog entries that load the same way as the rest. Catalog sizes, before → after (bytes): de 240,915 → 267,106; es 241,054 → 267,300; fr 247,268 → 274,559; ja 283,416 → 313,820; ko 248,411 → 275,505; pt 265,523 → 291,510; ru 339,167 → 374,831; tr 234,019 → 260,308; zh 246,513 → 271,317; zh-Hant 212,606 → 237,370. Each non-English catalog loads lazily, only when that language is chosen.

Risk

Level: Low. The worst case is a translation that reads wrong on a phone Bots screen. Placeholders and plural families are checked by the verifiers. This PR and #45740 add disjoint keys in the same files, so whichever merges second may need a rebase, but there are no conflicting values. Back out with a plain revert.

AI Disclosure

Review

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

Mobile only. No code paths change, so there's no cross-platform, SSH or backwards-compatibility impact.

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)

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds localized session-header and browser tab-bar labels, along with bot interface translations, to ten mobile locale files. The new bot strings cover settings, chats, groups, templates, memory maintenance, items, webhooks, setup, identity, tools, handoffs, and imports. The changes are localization additions; no application behavior changes are described.

Merge Risk: Minimal · up to aa0cb

This change adds missing translations for the phone's Bots screens in ten languages. It does not change application behavior, and no concrete problems were found, so it looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the phone's remaining Bots strings are translated in every supported language. The changeset adds bot-related catalog entries to all ten mobile locale files, so the ti…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template closely: it has ELI5, What Changed, Why, Linked Issue (Refs #45646), Visual Proof with before/after images, Testing with checkboxes, Performance with a …
Full details: Title check

Explanation

The title names the main change: the phone's remaining Bots strings are translated in every supported language. The changeset adds bot-related catalog entries to all ten mobile locale files, so the title matches the change. The title uses the conventional fix(i18n) prefix and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template closely: it has ELI5, What Changed, Why, Linked Issue (Refs #45646), Visual Proof with before/after images, Testing with checkboxes, Performance with a 'None, because' justification, Risk with a level, and Checklist. It explains the scope (catalog-only, gap-fill that depends on PR #45740) and reports verification steps. Gaps: the 'Fixes #' line is replaced by 'Refs #45646', which the template text says is not sufficient for outside contributors, though this is a maintainer-style PR and the link is present. The AI Disclosure and Review sections are empty headings. The Visual Proof lists screenshots for Russian, German and Japanese, which is adequate for UI-visible strings.

  • 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: c56b54b1-5644-472e-909b-5df4984cbd56
Commits

Reviewing files that changed from the base of the PR and between 8879110 and aa0cb84.

Files selected for processing: 10

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json

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

@AmoabaKelvin
AmoabaKelvin merged commit f20ad89 into main Nov 21, 2026
30 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.

1 participant