mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
Merge pull request #292 from storytold/fix/229-wasm-warning
i18n: the browser build's Match System uses supported() too (#229)
This commit is contained in:
1 file changed
+2
-1
@@ -22,8 +22,9 @@ fn system_language() -> &'static str {
|
||||
static LANGUAGE: std::sync::OnceLock<&'static str> = std::sync::OnceLock::new();
|
||||
LANGUAGE.get_or_init(|| supported(sys_locale::get_locale().as_deref()))
|
||||
}
|
||||
// No system locale in the browser build: English.
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
"en"
|
||||
supported(None)
|
||||
}
|
||||
|
||||
/// The language EffectCraft shows for a BCP 47 locale (`ja-JP` → `ja`).
|
||||
|
||||
Reference in new issue
Block a user