Add localization support and language settings UI - #117
Open
StartNight wants to merge 2 commits into
Open
Conversation
Collaborator
|
This looks great! Unfortunately, my Unity is crashing trying to import some of the localization assets. I'll see if I can figure out what's wrong, but if you've seen this before and have any ideas, please let me know. |
Collaborator
|
@StartNight Here is what google suggested as the fix. I'm not sure if this makes sense to you |
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 introduces the official Unity Localization package (
com.unity.localizationv1.5.12) along with Addressables (com.unity.addressablesv2.11.1), providing core localization infrastructure, font fallback support, and a dedicated Language tab in the in-game Settings menu.Key Changes
1. Package & Asset Configuration
com.unity.localizationandcom.unity.addressablestoPackages/manifest.json.Localization Settingswith English (en) and Simplified Chinese (zh-Hans) locales and String Tables.SourceHanSansCN-Normal) font asset and configured TextMeshPro fallback font onLiberationSans SDF Custom Outlinefor seamless multi-language character rendering.2. Core Architecture & UI
LocalizationManager: Added localization manager and registered it withinSystemGameManagerlife cycle.SystemLanguagePanel: Added a new window panel component that dynamically manages language buttons and syncs highlight states with the activeLocale.MainSettingsMenuPanel: Added a new "Language" tab navigation and sub-panel activation logic.MainMenuPanelandMainSettingsMenuPanelprefabs with the new Language button and sub-panel bindings.How to Test