Skip to content

feat(mobile): localize shared components, pull requests and diff review - #35532

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 88 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10647 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3538 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7109

Summary

Third of the mobile localization series (#35399, #35498). Moves ~590 strings to the translation API, with all ten translations:

  • shared components: modals and drawers, host cards, dictation setup, accounts, credit reset, markdown and diff review
  • the pull request sidebar (checks, reviewers, comments, conflicts, compose and link forms)

Behavior fixes that came with it

  • An invalid account snapshot is detected by error type instead of matching the English message, so rejecting stale account data keeps working in every language.
  • Credit-expiry wording uses separate keys for "one credit" and "several credits". Passing count would have let plural rules choose the sentence, which picks the wrong one in Japanese (always other) and Russian (21 → one).
  • The PR chip and check-status labels recompute on a language switch; the conflict and source-error lines keep the monospace commit/slug styling when a translation moves the placeholder.
  • TextInputModal now localizes its Cancel/Save buttons (follow-up to a review note on feat(mobile): localize app screens, settings, pairing and host lists #35498).

Validation

mobile typecheck, test typecheck, lint and tests; verify:mobile-localization, both coverage audits (mobile baseline 1,450 → 1,034), changed-code quality gate, React Doctor; translations through the same glossary, translation-memory, dual-review and arbiter pipeline as #35498.

Moves ~600 strings in the shared components (modals, drawers, host cards, dictation,
accounts), the pull request sidebar and diff review to the translation API, with all
ten translations.

- Invalid account snapshots are detected by error type, not by matching English text
- Credit expiry wording uses separate keys for one and several credits instead of
  plural rules, which would pick the wrong sentence in Japanese or Russian
- The PR chip memo recomputes on a language change
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 96e63888-6933-45c3-b489-d658e424af5c
Commits

Reviewing files that changed from the base of the PR and between ccd0829 and 8802562.

Files selected for processing: 88
  • config/mobile-localization-coverage-allowlist.json
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/components/AgentLaunchNotice.tsx
  • mobile/src/components/AgentSpinner.tsx
  • mobile/src/components/AgentStateDot.tsx
  • mobile/src/components/AuthFailedBanner.tsx
  • mobile/src/components/AuthFailedBannerActions.tsx
  • mobile/src/components/AuthFailedBannerActions.web.tsx
  • mobile/src/components/CodexResetCreditAction.tsx
  • mobile/src/components/ConfirmModal.tsx
  • mobile/src/components/CustomKeyModal.tsx
  • mobile/src/components/DragReorderRow.tsx
  • mobile/src/components/HostDiagnosticsLink.tsx
  • mobile/src/components/HostProtocolGate.tsx
  • mobile/src/components/HostRouteNoticeBanner.tsx
  • mobile/src/components/JiraConnectPrompt.tsx
  • mobile/src/components/MobileDictationSetupSheet.tsx
  • mobile/src/components/MobileDiffReviewBody.tsx
  • mobile/src/components/MobileDiffReviewDrawers.tsx
  • mobile/src/components/MobileDiffReviewFileSummary.tsx
  • mobile/src/components/MobileDiffReviewFooter.tsx
  • mobile/src/components/MobileDiffReviewHeader.tsx
  • mobile/src/components/MobileDiffReviewLine.tsx
  • mobile/src/components/MobileHomeQuickActions.tsx
  • mobile/src/components/MobileHostCard.tsx
  • mobile/src/components/MobileHtmlPreview.tsx
  • mobile/src/components/MobileLoadErrorState.tsx
  • mobile/src/components/MobilePRSidebar.tsx
  • mobile/src/components/MobileRichMarkdownEditor.tsx
  • mobile/src/components/MobileRichMarkdownToolbar.tsx
  • mobile/src/components/MobileSearchField.tsx
  • mobile/src/components/MobileSourceCopyButton.tsx
  • mobile/src/components/MobileWorkspaceNameInput.tsx
  • mobile/src/components/NewWorkspaceFab.tsx
  • mobile/src/components/NewWorkspaceSetupScriptField.tsx
  • mobile/src/components/NewWorkspaceSshConnectionField.tsx
  • mobile/src/components/NewWorktreeFormSheet.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/NewWorktreeModalDrawers.tsx
  • mobile/src/components/NewWorktreeProjectTargetFields.tsx
  • mobile/src/components/ProtocolBlockScreen.tsx
  • mobile/src/components/SetupHookTrustDrawer.tsx
  • mobile/src/components/SmartWorkspaceAdvancedFields.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceField.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TerminalShortcutSettings.tsx
  • mobile/src/components/TextInputModal.tsx
  • mobile/src/components/VoiceModelList.tsx
  • mobile/src/components/WorkspaceDetailPlaceholder.tsx
  • mobile/src/components/WorktreeListRow.tsx
  • mobile/src/components/accounts-snapshot.ts
  • mobile/src/components/codex-reset-credit.ts
  • mobile/src/components/mobile-markdown-blocks.tsx
  • mobile/src/components/mounted-bottom-drawer.tsx
  • mobile/src/components/new-worktree-agent-selection.ts
  • mobile/src/components/pr-sidebar/MobileLinkPrForm.tsx
  • mobile/src/components/pr-sidebar/MobilePrViewPanel.tsx
  • mobile/src/components/pr-sidebar/PRActionsSection.tsx
  • mobile/src/components/pr-sidebar/PRCheckDetail.tsx
  • mobile/src/components/pr-sidebar/PRChecksSection.tsx
  • mobile/src/components/pr-sidebar/PRCommentCard.tsx
  • mobile/src/components/pr-sidebar/PRCommentComposer.tsx
  • mobile/src/components/pr-sidebar/PRCommentsSection.tsx
  • mobile/src/components/pr-sidebar/PRConflictingFilesSection.tsx
  • mobile/src/components/pr-sidebar/PRReviewersSection.tsx
  • mobile/src/components/pr-sidebar/PRSidebarHeader.tsx
  • mobile/src/components/pr-sidebar/PrSidebarCreateEmptyState.tsx
  • mobile/src/components/pr-sidebar/ReviewerPickerDrawer.tsx
  • mobile/src/components/pr-sidebar/markdown-blocks.ts
  • mobile/src/components/pr-sidebar/pr-actions-state.ts
  • mobile/src/components/pr-sidebar/pr-check-detail-content.ts
  • mobile/src/components/pr-sidebar/pr-checks-presentation.ts
  • mobile/src/components/pr-sidebar/pr-comment-audience-labels.ts
  • mobile/src/components/use-codex-reset-credit-action.ts
  • 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/source-control/MobileSourceControlPanel.tsx
  • 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: 4/5

[Medium impact] The changes reach common mobile screens and two review workflows.

The PR appears safe to merge, with two non-blocking display issues.

Findings

  1. P2 Markdown keeps the old language ▶
  2. P2 Russian threads lose their count ▶

Summary

This PR moves mobile shared components, pull-request panels, and diff-review text into the translation API.

  • Shared mobile controls and workspace screens show translated text and labels.
  • Mobile diff review shows translated filters, notes, and file details.
  • The pull-request sidebar shows translated statuses, comments, and actions.

Reviews (1) · Last reviewed commit: "feat(mobile): localize shared components..." · Reviewed by Greptile

Comment on lines +69 to +72
<MobileSourceCopyButton
text={node.value}
accessibilityLabel={translate('components.markdownBlocks.copyCode', 'Copy code')}
/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Markdown keeps the old language

After a language switch, MobileSourceCopyButton updates its own text but keeps its old “Copy code” accessibility label. renderCode translates that prop in the parent, while the memoized MobileMarkdown does not subscribe to language changes. The “Open image” fallback has the same problem. Subscribe the Markdown renderer to language changes, or translate these labels inside subscribed child components.

Comment on lines +319 to +321
'pullRequest.commentsSection.resolvedThread_other',
'Resolved thread by {{author}} ({{count}})',
{ author: root.author, count }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Russian threads lose their count

Resolved threads with 21 comments lose their count in Russian. Passing count makes translate strip the explicit _other suffix and choose the language’s plural form. Russian chooses _one for 21, whose translation omits the count. The same happens for 31 and similar totals. Use separate keys for hiding versus showing the count, rather than letting plural rules choose whether it appears.

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