bazzar/web/src/i18n.rs

17 lines
458 B
Rust
Raw Normal View History

2022-05-10 08:23:35 +02:00
pub struct I18n {}
impl I18n {
pub fn load() -> Self {
// let languages: js_sys::Array = seed::window().navigator().languages();
// for lang in languages {
// let l: wasm_bindgen::JsValue = lang;
// if let Some(s) = l.as_string() {
// if let Ok(local) = pure_rust_locales::Locale::try_from(&s) {
// //
// }
// }
// }
Self {}
}
}