Add German localization#1
Open
OrienteeringIsFun wants to merge 1 commit into
Open
Conversation
Adds full German (de) support alongside English: a language toggle in Settings, localized UI strings via flutter_localizations/intl, and German translations of all 23 charades word-list categories. - Category names now separate a stable English id (used for routing) from a localized display name, since category name previously doubled as a routing key. - Word lists are selected by locale (assets/words/de/*.txt mirrors assets/words/*.txt). - Language defaults to the device locale (German if supported, otherwise English) and is persisted once the player picks one.
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
flutter_localizations/intl, with a language toggle in Settings that defaults to the device locale.assets/words/de/*.txt, mirroringassets/words/*.txt), using official German titles/names where they exist and keeping proper nouns (brands, song titles, actor names) as-is since that's what German speakers use for those too.GameCategoryto separate a stable Englishid(used for routing, e.g./play/session/:category) from a localized display name, since the category name previously doubled as the routing key.Test plan
flutter pub getresolves cleanlyflutter build apk --debugbuilds successfully