Update lang.rs

This commit is contained in:
RustDesk 2023-08-27 13:03:22 +08:00 committed by GitHub
parent a470bf127e
commit 15e8f6ffb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {