Repository navigation
#886 Localisation - #975
Merged
Merged
Conversation
# Conflicts: # ios/OpenCode Mobile/OpenCode Mobile/UI/Playground/SessionChatPlaygroundView.swift # ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift
… bar subtitle - Servers' Active badge and the top bar Back label come from strings.xml (servers_status_active, top_bar_back) with matching catalog keys. - The top bar Back arrow flips in right-to-left layouts. - The 220dp subtitle cap only applies when a status follows it, so a plain subtitle such as the profile count uses the full width, as on iOS.
- The Servers "Active" badge and the top bar's default Back label use the servers.status_active and top_bar.back catalog keys instead of English literals, so the Servers screen has no text missing from the catalog. - The top bar Back arrow flips in right-to-left layouts.
Move the user-facing text in Connection setup, the pairing QR scanner, Connection onboarding, App onboarding, the privacy cover and the app-root loading state into strings.xml and Localizable.xcstrings with matching keys (connection.*, onboarding.*, privacy_cover.*, common.*). English is unchanged. - Android: the Connection setup Screen Model now exposes UiText (titles, primary action, pair-again text, cleartext warning, saved-address rows and error snackbars); the screen resolves it. Hosts stay verbatim. - iOS: the Screen Model returns OpenCodeText for titles, actions and saved-address rows; snackbar errors come from the catalog. - The "Connection isn't encrypted" text moves from the domain CleartextPolicy to the Connection setup UI on both platforms. - Tests compare resolved English (new EnglishStrings lookup on Android) and cover the new UiText/OpenCodeText values.
Move the user-facing text of Home (top bar, servers sheet, New session and Run in sheets, scope picker, session actions and dialogs, empty and error states), Add Project (suggestion sheet and folder browser) and the New worktree form into strings.xml and Localizable.xcstrings with matching keys (home.*, add_project.*, worktree.*, common.*). English is unchanged. - Android Screen Models expose UiText: worktree form state and availability, Add Project sheet model, Home probe/create errors, servers chrome title, session-action errors and Home snackbars (HomeSnackbar, resolved by the screen). SessionListHomeChrome resolves picker and dock text through a UiTextLookup. Project, branch, folder and server text stays verbatim. - iOS state carries OpenCodeText (worktree form, Add Project sheet, servers chrome title, dialog errors); HomeProjectCopy and snackbars resolve from the catalog. All .unlocalized calls in scope are gone except the relative-time caption, which comes from the shared RelativeTimeFormatting. - Counts use plurals (projects, worktrees, running, folders, Show all N); names are positional arguments, never concatenated. - Android SessionListFilterTab gains pickerTitleOverride (as on iOS) so Home can pass a localised "All projects". - Tests compare resolved English or the UiText/OpenCodeText itself; new HomeTextTest / HomeTextTests cover plurals and verbatim arguments.
Design-system components and the domain/shared code they read now take their English from the string files on both platforms: session list, dock and picker, live updates, top bar, composer, dictation card, activity card and sheet, step rail, image gallery and viewer, attachments, and small default labels. Relative times, session list section titles, share subjects, theme errors and the new-session title are keyed too. The hardcoded-text check now scans design-system components (galleries, previews, sample declarations and animation labels excluded).
Merges feature/886-l10n-wording, the top of the #886 stack (#933, #952-#957, #959, #969, #968, #960), into current main. Conflicts came from the background work panel's Running / Done tabs (#971), which landed on main after the stack was cut. Its new text is keyed on both platforms: tab titles, both empty states, "Waiting for input", "Stopped", the "N tools" plural and the filter tabs' "new" accessibility word. - Android: the panel row text is UiText. The step title and the relative time already were after the stack; a stopped subagent's "Stopped" moved from the projected result into the row text, so no projection holds resolved app text. - iOS: the step title resolves from TimelineText, and the task row's agent tag is verbatim content. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@cursor review |
This was referenced Nov 3, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 872bab3. Configure here.
Merges main with #958 (Changes points to the other source when one is empty). Its new text is keyed on both platforms: the "Git changes has N changed files." / "The last turn changed N files." plurals, the "Show %s" action, and one format that joins the empty detail and the hint, so translators control the order. Android holds the hint as UiText; iOS as OpenCodeText. Also keys the session list's Recent hint ("Needs a glance"), which was still a hard-coded constant on both platforms while its title was keyed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ivanfenenko
added a commit
that referenced
this pull request
Nov 3, 2026
Conflicts came from #886 moving app text to string resources while this branch added keyboard focus, right-click and new shortcuts on the same lines. Kept both: main's localised labels with the branch's focus and secondary-click modifiers. Keyboard shortcut titles now follow main's resource model on both platforms, extended to every Tier 2 shortcut: Android titles and group labels are UiText resolved for the Keyboard Shortcuts Helper; iOS titles, menu names and prompt-chord titles are LocalizedStringResource. New keys under keyboard_shortcuts.* on both platforms; the single Sessions group key is replaced by the Session, Prompt and Go groups. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 3, 2026
Closed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Localisation for both apps, as one pull request: the #886 foundation and every extraction slice from the stacked pull requests, merged with current
main. English text now comes fromLocalizable.xcstrings(iOS) andres/values/strings.xml(Android) with matching keys, server and session content stays verbatim, and CI checks key parity and counts hardcoded text.This replaces the 11 stacked pull requests so the work can be reviewed and merged at once. The branch is a merge of
feature/886-l10n-wording(top of the stack, which contains every slice below it) into currentmain, plus merge commits frommainthat resolve the conflicts and key the textmainadded since.Areas covered
OpenCodeTexton design-system component text parameters with an explicit.verbatimpath; AndroidUiText(Resource,Plural,Verbatim) resolved in views, never in ViewModels; key convention iOSarea.name⇔ Androidarea_name;scripts/check-string-keys.mjsandscripts/check-hardcoded-text.mjswith aString Checksworkflow; Android pseudo-locales on debug,generateLocaleConfig,resources.properties; Settings › Servers as the proof screen.UiText/TimelineText.main(this pull request):mainadded the background work panel's Running / Done tabs (Running and Done tabs in the background work panel #971) after the stack was cut. The conflicts are resolved and its new text is keyed on both platforms: the tab titles, both empty states, "Waiting for input", "Stopped", the "N tools" plural, and the filter tabs' "new" accessibility word. On Android the row text is nowUiText(the step title and relative time already were, after the stack), and a stopped subagent's "Stopped" moved from the projectedresultinto the row text.main(this pull request):mainthen merged Changes: point to the other source when one is empty, and wait for Git info to settle #958 (Changes points to the other source when one is empty). Its hint text is keyed on both platforms: the "Git changes has N changed files." / "The last turn changed N files." plurals, the "Show %s" action, and one format that joins the empty detail and the hint so translators control the order. The session list's Recent hint ("Needs a glance", from a Bugbot review) is keyed on both platforms too; neither app shows it on screen today.About 1,094 keys match across the platforms. 11 hardcoded-text findings remain, down from about 1,050.
Checks
Run on the combined branch at its head (merge of the stack with current
main):node scripts/check-string-keys.mjs: pass, 1,094 shared keys (1,095 Android names including the allowlistedapp_name).node scripts/check-hardcoded-text.mjs: 11 findings, warning only (the same 11 as the top of the stack;main's new text added none after keying). They are listed under Risks../gradlew :app:testDebugUnitTest :app:assembleDebug: pass. 3,217 unit tests, 0 failures.ktlintMainSourceSetCheck/ktlintTestSourceSetCheck: nothing new in the lines this merge changed. The files still carry existing violations frommain(CI soft-fails ktlint).build-for-testing(Debug, iPhone 17 simulator): pass.OpenCode MobileTests, full target: 3,161 tests in 305 suites pass.gitleaks git --pre-commit --staged: no leaks.connectedDebugAndroidTest), iOS UI tests, AndroidlintDebug(CI soft-fails it on existing debt),xcodebuild analyze.Slices #954 through #960 were written without compiling, with builds and tests deferred to the whole stack. The issue reports the top of the stack building with the unit suites passing; the runs above are on the merged branch. The merge with
mainneeded two compile fixes on iOS and one on Android, all in the background work panel from #971.Evidence
Screenshots already posted on the stacked pull requests, all against scenario-harness fixture data or a fresh install. They still apply; the screens they show are not touched by later slices beyond keying text whose English is unchanged.
Not captured for this pull request. The other slices (#953 through #960) deferred their screenshots to "once for the whole stack", and that pass never happened, so there is no on-device evidence for Home, Files, Terminal, Session Chat and its sheets, Settings, Changes, the timeline, or the components. The unit tests compare resolved English for those areas, and the catalog falls back to the same English, but nothing has looked at them on a device. That includes the background work panel's Running / Done tabs keyed in this merge. Before merging, a harness-backed English smoke pass on both platforms over the main screens would cover this (see Risks), plus the pseudo-locale pass the issue already lists.
Issue
#886. This finishes stage 1 (foundation) and most of stage 2 (extraction). The issue stays open: the last 11 check findings, text the check cannot detect,
--strict, the pseudo-locale pass, the translation service and the first language are still to do.Supersedes, without closing or retargeting them:
#958 (Changes source fallback) has since merged into
mainand is merged into this branch, with its hint text keyed.Risks / Follow-ups
Text("\(…)")looked up as a key would show on device and not in unit tests. Suggested before merge: a harness-backed English pass over Home, Session Chat (timeline, sheets, background work Running / Done), Files, Terminal, Changes and Settings on both platforms..unlocalized: the attachment drop summary, the composer model notice, the side-question notice, the rename error, the Move to worktree menu, sheet and rows, and the composer "Default" variant chip.OpenCodeTaskRowfrommain.oneform: "N sessions", "N more running", "N agents", "N matches / files / lines", relative-time units. Multi-argument counts ("N of M connected", "%1$d saved · %2$s active") are plain strings.Locale.US"MMM d" and "h:mm a" (relative time, timeline, composer, session adapter) and Session Context numbers and costs; iOSen_US_POSIXin relative time and Session Context. Relative time is built from plurals rather than a platform relative-date formatter. Issue Localisation #886 asks for platform formatters.tool.count.named("%d %s", such as "3 reads") has no plural form.OpenCodeSectionHeaderandOpenCodeTextInputresolve their text toString, so they may not follow a live language change.SessionChatBackgroundWork.resultno longer returns "Stopped" for a stopped call without a reason; the row text adds it. iOS keeps the fallback inresult, resolved withString(localized:)like the rest of its row text.Stringwhen computed (snackbars, background work rows, pill copy). They update on the next refresh, not instantly.main; a merge commit keeps the 16 slice commits.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Note
Medium Risk
Very wide user-facing and navigation serialization changes (UiText in saved nav state) increase regression risk for wording, plurals, and accessibility, though behavior is mostly unchanged English copy.
Overview
This PR lands the #886 localization foundation and extraction on Android (with matching iOS catalog work described in the PR): user-facing copy moves out of Kotlin into
strings.xml/ plurals, resolved in Compose viaUiText(resource,plural,verbatim) andstringResource, while server/session content stays verbatim.CI and Android tooling: A new
String Checksworkflow runscheck-string-keys.mjs(Android/iOS key parity) andcheck-hardcoded-text.mjs(warning + step summary). Debug builds enable pseudo-locales;generateLocaleConfigexposes per-app language in system settings.App-wide refactors: Navigation args (
SessionToolGroup, etc.) serializeUiTextfor titles that must follow locale after restore. Domain helpers (relative time, session ladder sections,ChangeSource, errors, share subjects, theme load errors) returnUiTextinstead of hard-coded English. Large UI areas (Changes, session list dock, activity cards, dictation, attachments, top bar**) use keyed strings and plurals;OpenCodeTopBarback control mirrors in RTL. Hardcoded copy objects (CleartextPolicy,HomeWorktreeCopy,WorktreeCreateCopy, sync chrome) are trimmed in favor of resources.Eleven hardcoded-text findings and some English-only domain/accessibility strings remain;
check-hardcoded-textis warning-only until extraction is complete.Reviewed by Cursor Bugbot for commit 872bab3. Bugbot is set up for automated code reviews on this repo. Configure here.