mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-05 04:59:05 +08:00
Update lang.rs
This commit is contained in:
parent
a470bf127e
commit
15e8f6ffb7
@ -33,6 +33,7 @@ mod tw;
|
||||
mod ua;
|
||||
mod vn;
|
||||
mod lt;
|
||||
mod ar;
|
||||
|
||||
pub const LANGS: &[(&str, &str)] = &[
|
||||
("en", "English"),
|
||||
@ -133,6 +134,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
||||
"sl" => sl::T.deref(),
|
||||
"ro" => ro::T.deref(),
|
||||
"lt" => lt::T.deref(),
|
||||
"ar" => ar::T.deref(),
|
||||
_ => en::T.deref(),
|
||||
};
|
||||
if let Some(v) = m.get(&name as &str) {
|
||||
|
Loading…
Reference in New Issue
Block a user