Repository navigation
feat(i18n): add Latin American Spanish (es) localization - #138
Merged
Merged
Conversation
Adds a complete es translation for both the main app and the FinderSync extension, registers es in knownRegions, and makes the last user-visible hardcoded strings localizable: - RClick/Localizable.xcstrings: 156 es strings (8 keys added that the UI already used but the catalog was missing: OK, Save, Add, Display Name, Default Open App, Edit App Properties, plus Download failed / Unknown error for the updater) - FinderSyncExt/Localizable.xcstrings: 143 es strings (adds the Finder toolbar tooltip key) - FinderSyncExt: toolbarItemToolTip now goes through AppLocalization - Updater: the two remaining Chinese user-facing error strings are now localized keys - Default seed data (actions, common folders) uses the English source keys instead of hardcoded Chinese, so displayName lookups and the English fallback line up - scripts/check-localization.py verifies es coverage and that every translation keeps the source format specifiers, in order Newly introduced keys ship en, es, zh-Hans and ja so no language regresses. English stays the source language and the fallback for unsupported system languages. No logic, signing, entitlement or bundle-id changes.
9 of 21 tasks
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
Adds a complete Latin American Spanish (
es) localization for both the main app and the FinderSync extension, and makes the last few user-visible hardcoded strings localizable so they can be translated at all.RClick/Localizable.xcstrings: 156 Spanish stringsFinderSyncExt/Localizable.xcstrings: 143 Spanish stringsesregistered inknownRegionsEnglish remains the source language and the fallback for unsupported system languages. No existing
en,jaorzh-Hansentry was modified — the catalog diff is additive only (verified key by key).Strings that were not localizable before
FinderSyncExt.toolbarItemToolTipAppLocalization.localized("RClick: Click for menu options")Updater.downloadAsset"下载失败", shown to the user throughUpdateView.errorViewDownload failedUpdater.extractAppZip"未知错误", interpolated into the visibleExtraction failed: %@Unknown errorSix keys the UI already referenced were missing from
RClick/Localizable.xcstringsand silently fell back to the literal (OK,Save,Add,Display Name,Default Open App,Edit App Properties). They are now present, reusing thezh-Hans/javalues that already existed in the extension's catalog. Every newly introduced key shipsen,es,zh-Hansandja, so no language regresses.Seed data
ActionEntity.createDefaultActions()andCommonDirEntity.createDefaultCommonDirs()stored hardcoded Chinese names (复制路径,桌面, …). The UI never showed them —RCAction.displayNameandCommonDir.displayNameresolve byid— but they were the persisted values and an incorrect English fallback. They now use the English source keys, matchingRCAction.all. Noid, ordering or behavior change.Tooling
scripts/check-localization.pyvalidates both catalogs: JSON well-formedness, translation coverage per language, and that every translation preserves the source format specifiers in the same order (%@,%1$@,%lld, …). It is a standalone script, not part of any target.The four skipped keys are bare placeholders with no text (
"",%@,%lld,%@(%@)).Type of Change
Related Issue
None.
Screenshots
The layout is unchanged; only string values differ. Verified on screen with the Settings window in Spanish across all six tabs (General, Apps, Acciones, Nuevo archivo, Carpetas frecuentes, Acerca de).
One pre-existing cosmetic note: the sidebar truncates long labels (
Common F…in English today). Spanish has two truncated entries instead of one (Nuevo archi…,Carpetas fr…). This is the fixednavigationSplitViewColumnWidth(220), not a translation length problem — happy to widen it in a separate PR if you want.Reviewers can check any language without changing system settings:
/path/to/RClick.app/Contents/MacOS/RClick -AppleLanguages "(es-419)"Testing
Environment: macOS 26.6 (arm64), Xcode 26.6 (17F113).
Manual Testing
I have no code-signing identity available, so the FinderSync extension cannot be enabled on my machine and the context menu could not be exercised at runtime. What I did verify instead: the compiled
FinderSyncExt.appexshipses.lproj/Localizable.stringswith all 143 strings, alongsideen,jaandzh-Hans. The action labels resolve throughRCAction.displayNamein the host app before being sent to the extension, and those keys are covered.Build Verification
Both bundles were inspected after building:
RClick.appand the embedded.appexeach containen.lproj,es.lproj,ja.lprojandzh-Hans.lproj.Checklist
devAdditional Notes
.pptx,.numbers, …).project.pbxprojchange is the singleesentry inknownRegions.