You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
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: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Description check
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
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 checks: 3 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: mobile localization across screens, settings, pairing, and host lists.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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.
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)
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
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';
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second of the mobile localization series (infrastructure landed in #35399). Moves ~590 strings to the translation API, with all ten translations:
Behavior fixes that came with it
dialingflag.isConnectionDialingused to check whether the English label ended in "…", which a translation does not have to keep.'just now'; the host card's accessibility label comes from the connection path instead of.replace(' · ', ' via ')on the visible label.verify:mobile-localization: a plural family stays live while any of its forms is referenced, so--fixcannot pruneitems_otherwhen code names onlyitems_onewith 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 thatverify:mobile-localizationalready enforces.Validation
verify:mobile-localization, both coverage audits (mobile baseline shrinks from 1,828 to 1,450 candidates), React Doctor changed-lines gate, root oxlint configs