mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-25 13:19:04 +08:00
Update lang.rs
This commit is contained in:
parent
03e8bcca81
commit
005f766288
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user