Open
Conversation
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
This PR adds Brazilian Portuguese (
pt-BR) localization support and broadens the app's localization infrastructure so the UI can be translated consistently across supported languages.The main changes are:
PureMac/pt-BR.lproj/Localizable.stringsfile with Brazilian Portuguese translations for the current localized UI surface.pt-BRin the Xcode project so the new localization is included in the app bundle.zh-Hans) and Traditional Chinese (zh-Hant) localization files so all supported locale files have matching key sets.%@and%lldacross localized strings used by formatted labels.LocalizedStringKeyandString(localized:), where strings are displayed or formatted dynamically.AppleLanguagesas the macOS localization override.-psn_...arguments do not accidentally trigger CLI mode when the app is opened normally..onChangeusage by replacing those flows with explicit SwiftUI bindings.Notes for reviewers
pt-BR,zh-Hans, andzh-Hantall contain the same keys asen.AppleLanguages;AppleLanguagesis treated as an implementation detail for macOS bundle localization.Verification
Ran the following checks successfully before opening this PR:
git diff --check upstream/main...HEADplutil -lint PureMac/en.lproj/Localizable.strings PureMac/pt-BR.lproj/Localizable.strings PureMac/zh-Hans.lproj/Localizable.strings PureMac/zh-Hant.lproj/Localizable.stringspt-BR,zh-Hans, andzh-Hantagainstenrg -n '\.onChange\(' PureMacconfirmed there are no remaining.onChangeusagesxcodebuild -project PureMac.xcodeproj -scheme PureMac -configuration Debug -derivedDataPath .build/XcodeDerivedData CODE_SIGNING_ALLOWED=NO CODE_SIGN_IDENTITY= buildThe Xcode build completed with
BUILD SUCCEEDED.AI assistance disclosure
This contribution was implemented by an AI coding agent, OpenAI Codex, under human oversight. The human maintainer directed the requirements, selected the
pt-BRlocalization scope, reviewed behavior during development, requested corrections, and approved publishing this branch for review.