Repository navigation
#886 Localisation: Connection and onboarding text - #952
Closed
ivanfenenko wants to merge 1 commit into
Closed
ivanfenenko wants to merge 1 commit into
ivanfenenko wants to merge 1 commit into
Conversation
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.
Collaborator
Author
This was referenced Nov 2, 2026
Closed
ivanfenenko
marked this pull request as ready for review
November 3, 2026 15:59
Merged
Collaborator
Author
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
Stage 2, slice 1 of 6 for #886 (Localisation): Connection setup and onboarding text now comes from the string files on both platforms. Stacked on #933 (
feature/886-localisation-foundation); retarget tomainafter #933 merges.connection.setup.title.first⇔ Androidconnection_setup_title_first) underconnection.*,onboarding.*,privacy_cover.*andcommon.*. Reusedcommon.cancel,common.remove,servers.remove_dialog.title_namedandservers.remove_dialog.messagewhere the text and meaning are the same. Placeholders are positional; no translatable pieces are concatenated.ConnectionSetupUiStateexposesUiTextforscreenTitle,primaryActionLabel,pairAgainMessageandcleartextWarningMessage. Snackbars are aConnectionSetupSnackbar(text: UiText)that the screen turns intoOpenCodeSnackbarMessage. Saved-address rows holdUiTexttoo. Hosts stayUiText.Verbatim. The ViewModel never callsgetString.screenTitle,primaryActionLabel, address-recovery text, saved-address rows and the cleartext warning areOpenCodeText. Snackbar errors useString(localized:)with the same keys. All.unlocalized(...)calls in scope are gone.connection.error.*keys on both platforms. The shared domain messages used by Home are untouched.CleartextPolicy(both platforms) to the Connection setup UI. It uses two keys: one host ("uses") and a list of hosts ("use"). Xcode rejects a catalog plural that never prints its count..textCase(.uppercase)on iOS,uppercase(Locale.getDefault())on Android).Checks
node scripts/check-string-keys.mjs: pass. 113 shared keys (114 Android names including the allowlistedapp_name).node scripts/check-hardcoded-text.mjs: total 1050 → 928. Zero findings left in the files in scope, including every.unlocalizedthere../gradlew :app:assembleDebug: pass.ConnectionSetupViewModelTest46, newConnectionSetupTextTest8,CleartextPolicyTest4.UiTextTest8,ServersUiStateTest3,ConnectionProfileListMetaTest3,PairingQRDecoderTest6.EnglishStringslookup that readsres/values/strings.xml, or compare theUiTextitself.ConnectionSetupViewModelTestsincluding new key, verbatim-host and cleartext cases,CleartextPolicyTests,OpenCodeTextTests,ConnectionProfileListMetaTests).Evidence
Screenshots in the evidence comment.
Issue
#886. This is stage 2, slice 1 of 6; the other feature areas follow as separate pull requests.
Risks / Follow-ups
SecureCredentialStoreException.USER_MESSAGEthroughUiText.verbatim, and iOS shows the error'slocalizedDescription. The wording differs per platform (iOS adds the Keychain status), so it needs one shared message decided in the persistence/domain slice.OpenCodeListItemlimits subtitles to one line on both platforms.OpenCodeSkeletonIllustrationare design-system internals.OpenCodeServerAddressInputpoints up instead of down.macbook.local:4096is a catalog key, so translators can adapt it. The English stays as it was.ktlintCheck/lintDebugwere not run; CI soft-fails them on existing debt.gitleaksis not installed locally; the Secret Scan workflow covers it.Need help on this PR? Tag
@codesmith-botwith what you need.