Skip to content

feat: add Chinese (Simplified) localization#8

Merged
momenbasel merged 1 commit intomomenbasel:mainfrom
jeffdeen:feat/chinese-localization
Apr 10, 2026
Merged

feat: add Chinese (Simplified) localization#8
momenbasel merged 1 commit intomomenbasel:mainfrom
jeffdeen:feat/chinese-localization

Conversation

@jeffdeen
Copy link
Copy Markdown
Contributor

Summary

  • Add en.lproj/Localizable.strings and zh-Hans.lproj/Localizable.strings with 100+ translated strings
  • Register zh-Hans language and Localizable.strings in Xcode project (PBXVariantGroup + Resources build phase)
  • Wrap enum rawValue / description references in views with LocalizedStringKey so they resolve correctly
  • Change GradientActionButton.title from String to LocalizedStringKey for proper localization of button labels
  • Localize "Never" / "Not scheduled" in ScheduleConfig via String(localized:)
  • Localize notification body via NSLocalizedString

Test plan

  • Change system language to Chinese (Simplified) in System Settings → Language & Region
  • Launch PureMac and verify all UI text displays in Chinese
  • Run a scan and confirm scan/clean button labels are localized
  • Check Settings (Schedule / General / About tabs) for correct translations
  • Verify English is unaffected when system language is set to English

🤖 Generated with Claude Code

- Add en.lproj/Localizable.strings and zh-Hans.lproj/Localizable.strings
- Register zh-Hans language and Localizable.strings in Xcode project
- Wrap enum rawValues and descriptions with LocalizedStringKey in all views
- Fix GradientActionButton title type to LocalizedStringKey
- Localize "Never" / "Not scheduled" in ScheduleConfig via String(localized:)
- Localize notification body via NSLocalizedString

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@momenbasel momenbasel merged commit c8bb404 into momenbasel:main Apr 10, 2026
@momenbasel
Copy link
Copy Markdown
Owner

Thanks for the contribution! Clean localization work — the Chinese translations look solid and the SwiftUI integration follows standard patterns. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants