Merge pull request #1096 from rjackr/master

Update lang.rs
This commit is contained in:
RustDesk 2022-07-29 09:07:47 +08:00 committed by GitHub
commit ddf0a312c1
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) {