17 lines
458 B
Rust
17 lines
458 B
Rust
|
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 {}
|
||
|
}
|
||
|
}
|