Repository navigation
#886 Localisation: Files and Terminal text - #954
Closed
ivanfenenko wants to merge 1 commit into
Closed
ivanfenenko wants to merge 1 commit into
ivanfenenko wants to merge 1 commit into
Conversation
ivanfenenko
force-pushed
the
feature/886-l10n-files
branch
from
November 2, 2026 16:14
9c63e09 to
95b00e5
Compare
ivanfenenko
changed the base branch from
feature/886-l10n-connection
to
feature/886-l10n-home
November 2, 2026 16:14
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 extraction slice for #886 (Localisation): Files and Terminal text now comes from the string files on both platforms. This is part of an unmerged stack: #933 → #952 → this pull request (base
feature/886-l10n-connection). Not compiled yet. Verification happens once for the whole stack.ui/files/*, iOSUI/Files/*).ui/terminal/*, iOSUI/Terminal/*).ui/changes,UI/Changes) is not touched.files.*,file_viewer.*andterminal.*. Reusedcommon.cancelandcommon.checking_server; no newcommon.*keys.file_viewer.line_countandfile_viewer.size_bytes(Android only formats bytes itself; iOS uses the system byte formatter).file_viewer.meta(%1$s · %2$s) around the line-count plural, so no piece is concatenated in code.FilesFolderState.Failed,FilesTreeRow.FolderError,FilesFindState.Failed,FilesViewerContent.Failed) holdUiText. The server's detail staysUiText.Verbatim; the "Check the connection to the server" fallback is a resource.FilesViewerContent.Text.metaLabel,TooLarge.title/messageandformatFileSizereturnUiText.TerminalsCatalogUiState.createErrorisUiText.getString..unlocalizedcalls in scope are gone.FileViewerCopyreturnsOpenCodeTextand gainedbinaryDetail(mimeType:); it is no longernonisolated(onlyfileSizeis), becauseOpenCodeTextis main-actor under the app's default isolation.FileTextDocument.metaText(nonisolated) and the snackbar/error strings (copiedPathMessage,createError) useString(localized:defaultValue:), like #886 Localisation: Connection and onboarding text #952's snackbars.Checks
node scripts/check-string-keys.mjs: pass, 191 shared keys (192 Android names including the allowlistedapp_name).node scripts/check-hardcoded-text.mjs --list: zero findings in the files in scope. Total 928 → 785 on this branch.xmllint --nooutonstrings.xmlandpython3 -m json.toolon the catalog: pass. The catalog was rewritten in Xcode's format; the diff is insertions only (two runs, because keys stay sorted).xcrun swiftc -parseon every changed Swift file: pass.FilesViewModelTest: comparesUiText, or English throughEnglishStrings. New cases for the meta label and the no-detail fallback.TerminalsCatalogViewModelTest: checks thecreateErrorresource and its English.FileViewerCopyTests: compares.resolved. New MIME-type case.metaText, "Path copied",createError) still compare English strings and are unchanged.Evidence
Verified once for the whole stack.
Issue
#886. Stage 2 extraction slice; other feature areas follow in their own pull requests.
Risks / Follow-ups
FileViewerCopylostnonisolated.HighlightCoreFileSessionnow reads its queue label from a static constant.stringResourceis called inside inlinelet/ifBlanklambdas in composables.formatFileSizenow returnsUiText.ProjectFilesException.detail, built in the domain) stays verbatim.Locale.USdecimal point and the KB/MB/GB unit symbols. Only "byte(s)" is a plural.OpenCodeTreeRowandOpenCodeFileTabstakeString, so the "ignored" tag is resolved withString(localized:)before it is passed in.OpenCodeSnackbarMessage.textis aString.Need help on this PR? Tag
@codesmith-botwith what you need.