This commit is contained in:
rustdesk 2022-07-28 16:54:17 +08:00
parent 5f9ffc3bd7
commit 03e8bcca81

View File

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