Fix: Refine locale matching logic to support region-specific tags (#411)

* wgui(i18n): Fix language matching logic

* wgui(i18n): Fix locale prefix match
This commit is contained in:
ZokuTe
2026-01-25 11:22:59 +08:00
committed by GitHub
parent 554029aacf
commit 46e54db969
3 changed files with 98 additions and 33 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ impl WguiGlobals {
assets_builtin,
defaults,
asset_folder,
font_system: WguiFontSystem::new(font_config, i18n_builtin.get_lang()),
font_system: WguiFontSystem::new(font_config, i18n_builtin.get_locale()),
i18n_builtin,
custom_glyph_cache: CustomGlyphCache::new(),
}))))