Compare commits

...

1 Commits

Author SHA1 Message Date
Ebrahim
6405ba57ee
add test comment 😅 2020-06-23 08:51:31 +04:30

View File

@ -46,6 +46,9 @@ lazy_static! {
let lang = js! { return navigator.language }.into_string().unwrap(); let lang = js! { return navigator.language }.into_string().unwrap();
let lang = lang.splitn(2, '-').next().unwrap_or("en"); let lang = lang.splitn(2, '-').next().unwrap_or("en");
// Force a language (Add .env setting)
//let lang = "fa"; ???
let english_position = catalogs let english_position = catalogs
.iter() .iter()
.position(|(language_code, _)| *language_code == "en") .position(|(language_code, _)| *language_code == "en")