EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
i18n: the browser build's Match System uses supported() too (#229)
bflatastic646a6842cd4a
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rsindex 376ef6c73..adebb9501 100644--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@ -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`).