Compare commits
1 Commits
main
...
DearRude/f
Author | SHA1 | Date | |
---|---|---|---|
|
6405ba57ee |
@ -46,6 +46,9 @@ lazy_static! {
|
||||
let lang = js! { return navigator.language }.into_string().unwrap();
|
||||
let lang = lang.splitn(2, '-').next().unwrap_or("en");
|
||||
|
||||
// Force a language (Add .env setting)
|
||||
//let lang = "fa"; ???
|
||||
|
||||
let english_position = catalogs
|
||||
.iter()
|
||||
.position(|(language_code, _)| *language_code == "en")
|
||||
|
Loading…
Reference in New Issue
Block a user