Skip to content

fix(l10n): localize search UI and browse categories - #208

Closed
masivoTosan wants to merge 3 commits into
Clash-Projects:mainfrom
masivoTosan:i18n/localize-search-ui
Closed

masivoTosan wants to merge 3 commits into
Clash-Projects:mainfrom
masivoTosan:i18n/localize-search-ui

Conversation

@masivoTosan

Copy link
Copy Markdown
Contributor

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.

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