Update lang.rs
This commit is contained in:
parent
424e3da190
commit
8e1c5ad64d
@ -32,6 +32,7 @@ mod tr;
|
||||
mod tw;
|
||||
mod ua;
|
||||
mod vn;
|
||||
mod lt;
|
||||
|
||||
pub const LANGS: &[(&str, &str)] = &[
|
||||
("en", "English"),
|
||||
@ -66,6 +67,7 @@ pub const LANGS: &[(&str, &str)] = &[
|
||||
("th", "ภาษาไทย"),
|
||||
("sl", "Slovenščina"),
|
||||
("ro", "Română"),
|
||||
("lt", "Lietuvių"),
|
||||
];
|
||||
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
@ -129,6 +131,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
||||
"th" => th::T.deref(),
|
||||
"sl" => sl::T.deref(),
|
||||
"ro" => ro::T.deref(),
|
||||
"lt" => lt::T.deref(),
|
||||
_ => en::T.deref(),
|
||||
};
|
||||
if let Some(v) = m.get(&name as &str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user