feat: in-app language switcher (English/Chinese) with full Chinese localization - #126
Open
nailongooo99 wants to merge 2 commits into
Open
feat: in-app language switcher (English/Chinese) with full Chinese localization#126nailongooo99 wants to merge 2 commits into
nailongooo99 wants to merge 2 commits into
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 an in-app language switcher to the home screen and introduces full
Simplified Chinese (zh-Hans) localization for the whole UI, so mond can be used
in either English or Chinese without an app restart.
What's included
native segmented control, matching the style of the Exploit method picker in
Settings, to switch between English and 中文.
every view and is saved in UserDefaults, so it survives relaunches.
(including every toggle description), MobileGestalt editor (tweak names, info
popups, apply/revert/load alerts), CacheExtra editor, PosterBoard, Tendies
explorer, HouseArrest file browser, and the startup "Not supported" alert.
community (e.g. Respring → 注销, Tweaks → 插件, Stage Manager → 台前调度,
Dynamic Island → 灵动岛), including fully translated long warnings such as
the iPadOS Mode risk notice and the Apple Intelligence usage steps.
Design notes
L10n manager (mond/helpers/L10n.swift) resolves Chinese at runtime and falls
back to English for any untranslated string.
String rather than LocalizedStringKey, a small in-app localization manager is
used instead of the system string catalog — this also enables switching
without restarting the app.
language change; L10n.shared is used for alerts and helper functions.
Testing
workflow.
immediately, Chinese renders correctly throughout, and no regressions were
observed in tweaks or settings.
Notes for maintainers
later if preferred.
you'd prefer a different spot.