Repository navigation
feat(sender): follow the macOS language order on first launch - #213
Merged
swellweb merged 1 commit intoOct 16, 2026
Merged
Conversation
Without a saved choice the Sender started in Italian for everyone. It now picks the first supported language in Locale.preferredLanguages, falling back to English. A language chosen in Settings still wins, as before.
Owner
|
Thanks, this is a useful first-launch improvement. I moved it to maint-3.6 and verified the combined local test run. I added isolated-preference regression tests in the integration follow-up to confirm that an existing explicit language choice is preserved and an invalid saved value falls back safely. No user preferences were reset. |
This was referenced Oct 16, 2026
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.
Without a saved language, the Sender always starts in Italian. Someone whose Mac is set to Chinese, German, French or English first meets an Italian window and has to find the language switch.
This picks the first supported language in
Locale.preferredLanguagesinstead, and falls back to English when none is supported. A language chosen in Settings is still saved and still wins, exactly as before, so existing users see no change.TBDisplaySenderLanguage.preferred(by:)matches on the base language code (zh-Hans-AU→zh), using the existingfileStemmapping, so a new language added to the enum is picked up automatically.TBSenderLanguageTestscovers the order, skipping unsupported languages, and the English fallback.xcodebuild test: 178 tests, 0 failures (175 existing + 3 new).The Receiver already has an Auto language mode, so it is unchanged.
🤖 Generated with Claude Code