Update lang.rs

This commit is contained in:
Jack 2022-07-28 21:20:42 +02:00 committed by GitHub
parent 03e8bcca81
commit 005f766288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ mod sk;
mod tr;
mod tw;
mod vn;
mod pl;
lazy_static::lazy_static! {
pub static ref LANGS: Value =
@ -39,6 +40,7 @@ lazy_static::lazy_static! {
("eo", "Esperanto"),
("tr", "Türkçe"),
("vn", "Tiếng Việt"),
("pl", "Polski"),
]);
}
@ -84,6 +86,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"da" => da::T.deref(),
"sk" => sk::T.deref(),
"vn" => vn::T.deref(),
"pl" => pl::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {