Update lang.rs

This commit is contained in:
MrVinyla 2023-04-03 20:21:50 +03:00 committed by GitHub
parent 424e3da190
commit 8e1c5ad64d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {