Repository navigation
fix(l10n): localize search UI and browse categories - #208
Closed
masivoTosan wants to merge 3 commits into
Closed
masivoTosan wants to merge 3 commits into
masivoTosan wants to merge 3 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.
The search page still shows hardcoded English after switching languages. Route its headings, filters, recent-search descriptions, empty/error states and result badges through the existing context.l10n translation system. Browse-category names now use translation keys while their underlying search queries stay unchanged.
Reuse existing keys where appropriate and add 27 English/Simplified Chinese resource pairs, with music-specific terminology. Artist names, search input, SearchTab identities and playback source labels are preserved. Other languages retain the existing English fallback.
Validation: Flutter 3.47.9 analysis passed with no issues; test/l10n_test.dart and the new test/desktop_search_l10n_test.dart passed. The new tests cover catalog coverage/fallback and literal artist-name interpolation. Validation run. The fork-only validation workflow was removed afterward without changing application code. Windows runtime/visual testing has not been performed.
This is a focused first batch for the search page; it does not claim to localize the entire application.