Skip to content

feat(mobile): localize app screens, settings, pairing and host lists - #35498

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/mobile-i18n-2
Oct 29, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/mobile-i18n-2

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​33 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​21
Prod 92 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13253 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5836 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7417

Summary

Second of the mobile localization series (infrastructure landed in #35399). Moves ~590 strings to the translation API, with all ten translations:

  • root screens and settings (appearance, terminal, chat, browser, voice, notifications, troubleshooting, about)
  • pairing (scan, confirm, manual), onboarding and notification opt-in
  • accounts, agent session history, diagnostics and connection status
  • home, host screen and the host's workspace list

Behavior fixes that came with it

  • Connection verdicts now carry an explicit dialing flag. isConnectionDialing used to check whether the English label ended in "…", which a translation does not have to keep.
  • The web-shell update-failure line ("failed just now" / "failed 5m ago") is built from the elapsed time instead of comparing a translated relative time with 'just now'; the host card's accessibility label comes from the connection path instead of .replace(' · ', ' via ') on the visible label.
  • Host stack titles, workspace sections, PR lane names and connection labels recompute on a language switch.
  • Workspace status names stay the host's labels, as on desktop. Low-level transport errors stay English (they feed logs and diagnostics).
  • verify:mobile-localization: a plural family stays live while any of its forms is referenced, so --fix cannot prune items_other when code names only items_one with a count (review follow-up from feat(mobile): localization infrastructure and language setting #35399).

Translations

Glossary-guided translation (desktop glossaries in config/i18n-*.md, desktop catalogs as translation memory for identical English), programmatic placeholder and plural checks, two independent reviews per language (UX writer and terminology auditor) with an arbiter, plus the desktop terminology policy that verify:mobile-localization already enforces.

Validation

  • mobile typecheck, test typecheck ratchet, lint and tests (one pre-existing local e2ee failure unrelated to this change)
  • verify:mobile-localization, both coverage audits (mobile baseline shrinks from 1,828 to 1,450 candidates), React Doctor changed-lines gate, root oxlint configs
  • RPC recordings replay unchanged

@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 29, 2026 00:26
@OrcaWin
OrcaWin force-pushed the OrcaWin/mobile-i18n-2 branch from 7e07eb3 to 3a134da Compare October 29, 2026 00:30
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The change adds mobile translations across account, onboarding, pairing, home, host, workspace, diagnostics, settings, dictation, and worktree interfaces. English fallback text remains in translation calls. Locale resources expand across multiple languages. Connection verdicts gain an explicit dialing flag, and related tests set that flag. The localization extraction script now treats plural forms as a live family when any form has key evidence.

Priority: Normal

Merge Risk: Low · up to 54d4e

Completed notification results and home connection labels may remain in the previous language after switching languages; the impact is user-visible but localized.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the localization scope, behavior changes, translation process, and validation, but it omits several required template sections and checklist details. Complete the required template sections: ELI5, What Changed, Why, Linked Issue with an actual issue reference such as “Fixes #…”, Visual Proof with before/after attachments or an explicit N/A reason, Testing with platform details and checkb…
Docstring Coverage Warning Docstring coverage is 17.39% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: mobile localization across screens, settings, pairing, and host lists.
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.
Full details: Description check

Resolution

Complete the required template sections: ELI5, What Changed, Why, Linked Issue with an actual issue reference such as “Fixes #…”, Visual Proof with before/after attachments or an explicit N/A reason, Testing with platform details and checkbox status, AI Disclosure if applicable, Review, Agent skill upstream boundary, Notes, and Checklist. State the reported pre-existing E2EE failure clearly in Testing.

Full details: Docstring Coverage

Explanation

Docstring coverage is 17.39% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 69 functions across 51 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain from this review.

Summary

Localizes mobile settings, pairing, onboarding, home, host lists, history, and diagnostics across ten languages.

  • Mobile screens and workspace lists show translated labels in the selected language.
  • Connection labels keep their meaning across languages and assistive text.
  • The localization check keeps plural forms together.

No new actionable issues were found. This review checked source code; it did not run tests or capture the app.

Reviews (2) · Last reviewed commit: "feat(mobile): localize app screens, sett..." · Reviewed by Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


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: 1e04b6bd-1a3e-4913-abfa-292be5f5c67b
Commits

Reviewing files that changed from the base of the PR and between b685340 and 3a134da.

Files selected for processing: 97
  • config/mobile-localization-coverage-allowlist.json
  • config/scripts/verify-mobile-localization.mjs
  • mobile/app/h/[hostId]/edit.tsx
  • mobile/app/mobile-onboarding.tsx
  • mobile/app/notifications.tsx
  • mobile/app/pair-confirm.tsx
  • mobile/app/pair-scan.tsx
  • mobile/app/pair.tsx
  • mobile/app/terminal-settings.tsx
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryList.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/agent-history/agent-history-resume-target.ts
  • mobile/src/agent-history/agent-history-session-card.ts
  • mobile/src/agent-history/use-mobile-agent-history-state.ts
  • mobile/src/agent-history/worktree-navigation-actions.ts
  • mobile/src/components/MobileDictationSetupSheet.tsx
  • mobile/src/components/MobileHostCard-truthful-status.test.tsx
  • mobile/src/components/MobileHostCard.tsx
  • mobile/src/components/StatusDot.test.ts
  • mobile/src/components/VoiceModelList.tsx
  • mobile/src/components/voice-model-list-cloud-models.test.tsx
  • mobile/src/diagnostics/connection-diagnostics-view.tsx
  • mobile/src/diagnostics/mobile-web-bundle-probe-row.tsx
  • mobile/src/diagnostics/mobile-web-shell-update-failure-copy.ts
  • mobile/src/diagnostics/mobile-web-shell-update-failure-row.tsx
  • mobile/src/diagnostics/troubleshoot-common-issues.tsx
  • mobile/src/diagnostics/troubleshoot-view.tsx
  • mobile/src/diagnostics/use-troubleshoot-diagnostics.ts
  • mobile/src/dictation/mobile-dictation-setup.ts
  • mobile/src/home/AppUpdateCard.tsx
  • mobile/src/home/MobileHomeAccountUsageCards.tsx
  • mobile/src/home/MobileHomeEmptyState.tsx
  • mobile/src/home/MobileHomeListFooter.tsx
  • mobile/src/home/MobileHomeListHeader.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/MobileHomeTasksCard.tsx
  • mobile/src/home/MobileHomeTopBar.tsx
  • mobile/src/hooks/mobile-dictation-desktop-start.ts
  • mobile/src/hooks/use-mobile-dictation.ts
  • mobile/src/host-list-action-sheet-actions.ts
  • mobile/src/host-screen/host-pending-creation-row.tsx
  • mobile/src/host-screen/host-rail-actions.tsx
  • mobile/src/host-screen/host-screen-header.tsx
  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-screen/host-workspace-list.tsx
  • mobile/src/host-screen/use-host-screen-controller.ts
  • mobile/src/host-screen/workspace-details-sheet.tsx
  • mobile/src/host-screen/workspace-option-controls-copy.ts
  • mobile/src/host-screen/workspace-option-controls.tsx
  • mobile/src/host-screen/workspace-options-sheet.tsx
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.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
  • mobile/src/mobile-web-shell/ShellStateScreen.tsx
  • mobile/src/navigation/host-stack-screens.ts
  • mobile/src/navigation/host-stack.tsx
  • mobile/src/navigation/host-stack.web.tsx
  • mobile/src/notifications/NotificationDeliverySection.tsx
  • mobile/src/onboarding/MobileOnboardingPage.tsx
  • mobile/src/onboarding/NotificationOnboardingPreview.tsx
  • mobile/src/settings/about-screen.tsx
  • mobile/src/settings/app-update-settings-rows.tsx
  • mobile/src/settings/browser-settings-screen.tsx
  • mobile/src/settings/mobile-settings-menu-items.ts
  • mobile/src/settings/mobile-settings-menu.tsx
  • mobile/src/settings/native-chat-settings-screen.tsx
  • mobile/src/settings/native-notification-delivery-settings.tsx
  • mobile/src/settings/notification-display-test.tsx
  • mobile/src/settings/notification-settings-screen.tsx
  • mobile/src/settings/pending-credential-cleanup-card.tsx
  • mobile/src/settings/settings-menu-screen.tsx
  • mobile/src/settings/ui-language-settings-section.tsx
  • mobile/src/settings/voice-settings-screen.tsx
  • mobile/src/tasks/use-mobile-tasks-connection-presentation.tsx
  • mobile/src/transport/connection-health.test.ts
  • mobile/src/transport/connection-health.ts
  • mobile/src/transport/host-endpoint-copy.ts
  • mobile/src/transport/host-endpoint.ts
  • mobile/src/transport/mobile-connection-path-label.ts
  • mobile/src/transport/pair-confirm-state.ts
  • mobile/src/transport/rpc-client-stream-registry.ts
  • mobile/src/transport/rpc-client-terminal-binary-frame.ts
  • mobile/src/worktree/agent-row-display.ts
  • mobile/src/worktree/host-workspace-list-state.test.ts
  • mobile/src/worktree/host-workspace-list-states.tsx
  • mobile/src/worktree/use-workspace-sections.ts
  • mobile/src/worktree/workspace-list-sections.ts

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

Comment thread mobile/app/pair-scan.tsx
Comment on lines +395 to +413
<Text style={styles.secondaryButtonText}>
{t('app.pairScan.pasteInstead', 'Paste code instead')}
</Text>
</Pressable>
</View>
</View>
)}

<TextInputModal
visible={pasteVisible}
title="Paste pairing code"
message="Copy the code shown under the QR on your computer."
placeholder="orca://pair?code=... or paste the code"
title={t('app.pairScan.pasteCodeTitle', 'Paste pairing code')}
message={t(
'app.pairScan.pasteCodeMessage',
'Copy the code shown under the QR on your computer.'
)}
placeholder={t(
'app.pairScan.pasteCodePlaceholder',
'orca://pair?code=... or paste the code'
)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

sed -n '380,425p' mobile/app/pair-scan.tsx
sed -n '1,150p' mobile/src/components/TextInputModal.tsx

Repository: stablyai/orca

Length of output: 5809


Script executed:

set -o pipefail
printf '%s\n' '--- TextInputModal references ---'
rg -n -F --glob '*.{ts,tsx}' -e 'TextInputModal' -e 'submitLabel' -e "textInputModal" mobile || test "$?" -eq 1
printf '%s\n' '--- PairScan diff against merge base ---'
git diff -- mobile/app/pair-scan.tsx mobile/src/components/TextInputModal.tsx 12a7d4c13a60c81e5e12c9f76e101357b3ee7a51 3a134da0b96d5076588ecaf4e4598df3de96f3e6
printf '%s\n' '--- PairScan surrounding component ---'
sed -n '1,460p' mobile/app/pair-scan.tsx

Repository: stablyai/orca

Length of output: 17643


Script executed:

set -o pipefail
printf '%s\n' '--- common action translation usage ---'
rg -n -F --glob '*.{ts,tsx,json}' -e "common.cancel" -e "common.continue" -e "common.save" -e "common.done" mobile || test "$?" -eq 1
printf '%s\n' '--- TextInputModal complete call-site blocks ---'
sed -n '175,210p' mobile/src/components/MobileRichMarkdownEditor.tsx
sed -n '320,365p' mobile/src/session/MobileSessionSheets.tsx
printf '%s\n' '--- exact PairScan modal ranges ---'
nl -ba mobile/app/pair-scan.tsx | sed -n '275,307p;397,418p'
printf '%s\n' '--- exact TextInputModal action implementation ---'
nl -ba mobile/src/components/TextInputModal.tsx | sed -n '10,110p'

Repository: stablyai/orca

Length of output: 9202


Localize both pairing modal actions.

Both reachable pairing paste modals translate their content but render English Save and Cancel. This creates a user-facing localization gap and can make the actions less clear for non-English users.

Suggested fix
--- a/mobile/src/components/TextInputModal.tsx
+++ b/mobile/src/components/TextInputModal.tsx
@@ -12,6 +12,7 @@ type Props = {
   defaultValue?: string
   placeholder?: string
   submitLabel?: string
+  cancelLabel?: string
   selectTextOnFocus?: boolean
@@ -28,6 +29,7 @@ export function TextInputModal({
   defaultValue = '',
   placeholder,
   submitLabel = 'Save',
+  cancelLabel = 'Cancel',
@@ -88,7 +90,7 @@ export function TextInputModal({
           style={({ pressed }) => [styles.cancelButton, pressed && styles.buttonPressed]}
           onPress={onCancel}
         >
-          <Text style={styles.cancelText}>Cancel</Text>
+          <Text style={styles.cancelText}>{cancelLabel}</Text>

Pass t('common.continue', 'Continue') and t('common.cancel', 'Cancel') to both pairing modal instances.

Comment thread mobile/src/i18n/locales/ru.json Outdated
"hideCliCreated": "Скрыть созданные через CLI",
"hideDefaultBranch": "Скрыть основную ветку",
"hideDetachedHead": "Скрыть с отсоединённым HEAD",
"hideOtherClientWorkspaces": "Скрыть с других устройств",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Name the workspaces that this filter hides.

“Скрыть с других устройств” suggests hiding workspaces from other devices. The option instead hides workspaces belonging to other clients. A Russian-speaking user could enable the wrong filter or misunderstand its scope. Use “Скрыть рабочие пространства других клиентов.” (raw.githubusercontent.com)

Comment on lines +71 to +76
setMessage(
t(
'settings.notificationDisplayTest.accepted',
'Accepted by Orca’s push service. Check for the notification.'
)
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

sed -n '1,100p' mobile/app/notifications.tsx
sed -n '1,220p' mobile/src/i18n/mobile-i18n.ts
rg -n 'ui-language|UiLanguage|language-settings|NotificationsScreen|notifications' mobile/app mobile/src/settings mobile/src/navigation

Repository: stablyai/orca

Length of output: 13481


Script executed:

printf '%s\n' '--- UI language settings ---'
sed -n '1,180p' mobile/src/settings/ui-language-settings-section.tsx
printf '%s\n' '--- UI language preference ---'
sed -n '1,280p' mobile/src/i18n/ui-language-preference.ts
printf '%s\n' '--- Appearance/settings navigation ---'
sed -n '1,180p' mobile/src/settings/appearance-settings-screen.tsx
sed -n '1,140p' mobile/src/settings/mobile-settings-menu-items.ts
rg -n -F --glob '*.tsx' --glob '*.ts' -e "push('/settings" -e "push('/appearance" -e "appearance" -e "router.back()" mobile/app mobile/src/settings | head -160
printf '%s\n' '--- Notification test ---'
sed -n '1,220p' mobile/src/settings/notification-display-test.tsx
printf '%s\n' '--- Stack route declarations ---'
sed -n '180,260p' mobile/app/_layout.tsx

Repository: stablyai/orca

Length of output: 25892


Script executed:

rg -n -F --glob '*.ts' --glob '*.tsx' -e 'followDeviceUiLocale' -e 'readDeviceUiLocaleTags' -e 'AppState' -e 'react-native-localize' mobile src
printf '%s\n' '--- settings route ---'
sed -n '1,180p' mobile/app/settings.tsx
sed -n '1,130p' mobile/src/settings/mobile-settings-menu.tsx

Repository: stablyai/orca

Length of output: 45667


Script executed:

printf '%s\n' '--- exact followDeviceUiLocale references ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'followDeviceUiLocale' mobile || test "$?" -eq 1
printf '%s\n' '--- device locale helpers ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -e 'readDeviceUiLocaleTags' -e 'resolveUiLocaleFromTags' -e 'startMobileUiLanguage' mobile || test "$?" -eq 1
printf '%s\n' '--- app bootstrap imports and effects ---'
sed -n '1,125p' mobile/app/_layout.tsx

Repository: stablyai/orca

Length of output: 7932


Script executed:

sed -n '1,160p' mobile/src/i18n/use-follow-device-ui-locale.ts

Repository: stablyai/orca

Length of output: 684


Translate the test outcome when it renders.

On Android 13+ per-app language changes, the device locale can change while /notifications remains mounted. The accepted message stores translated text, so it can remain in the previous language after the rerender. Store an outcome key and translate it during render. Keep raw external error messages separate.

The normal in-app path to Appearance pops /notifications first, so that path discards the message state.

Moves ~600 strings in the root screens, settings, pairing, onboarding, accounts,
agent history, diagnostics, connection status, home and host workspace lists to the
translation API, with all ten translations.

- Connection verdicts carry an explicit `dialing` flag instead of matching the
  "…" ending of an English label
- Update-failure copy and connection-path accessibility labels are built from data,
  not by editing translated text
- Workspace status names stay the host's labels, as on desktop; transport errors
  stay English
- The stale-key check keeps a plural family while any of its forms is referenced
@OrcaWin
OrcaWin force-pushed the OrcaWin/mobile-i18n-2 branch from 3a134da to 54d4ef1 Compare October 29, 2026 00:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Subscribe MobileHomeHostRow to language changes so its connection… · MobileHostCard.tsx:69-73

mobile/src/components/MobileHostCard.tsx:69-73
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Subscribe MobileHomeHostRow to language changes so its connection labels update.

MobileHomeHostRow is wrapped in memo and calls classifyConnection(...) without a language subscription. The verdict and path labels are translated inside that call, so they keep the language active when the row last rendered. After a language change, the row does not re-render on its own. Its card then shows the old verdict and path labels. The PR states that these labels recompute when the language changes, so this path does not meet that requirement.

Calling useMobileTranslation() in the row subscribes it through useSyncExternalStore. A store update re-renders the component directly, so memo does not block it. The row re-render also passes the recomputed label props to MobileHostCard, which updates the card's visible path label and accessibility label.

Suggested fix
+import { useMobileTranslation } from '../i18n/use-mobile-translation';
   // inside MobileHomeHostRow, before classifyConnection(...)
+  useMobileTranslation();
   const verdict = classifyConnection(

Call the hook unconditionally, before any early return in the row body.


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: 4698b1a8-e32b-4d4e-85e3-20c4115fd5ff
Commits

Reviewing files that changed from the base of the PR and between 3a134da and 54d4ef1.

Files selected for processing: 2
  • config/scripts/verify-mobile-localization.test.mjs
  • mobile/src/i18n/locales/ru.json
Files skipped from review as they are similar to previous changes: 1
  • mobile/src/i18n/locales/ru.json

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

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