This commit is contained in:
rustdesk 2022-09-13 17:00:59 +08:00
parent 64b723a035
commit 69c49073c6
2 changed files with 195 additions and 192 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@ mod sk;
mod tr;
mod tw;
mod vn;
mod kz;
lazy_static::lazy_static! {
pub static ref LANGS: Value =
@ -45,6 +46,7 @@ lazy_static::lazy_static! {
("pl", "Polski"),
("ja", "日本語"),
("ko", "한국어"),
("kz", "Қазақша"),
]);
}
@ -93,6 +95,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"pl" => pl::T.deref(),
"ja" => ja::T.deref(),
"ko" => ko::T.deref(),
"kz" => kz::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {