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:
+1
-1
@@ -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(),
|
||||
}))))
|
||||
|
||||
Reference in New Issue
Block a user