Update lang.rs

This commit is contained in:
RustDesk 2022-05-26 21:07:39 +08:00 committed by GitHub
parent ab66c32618
commit f2f12ffb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ mod eo;
mod ptbr;
mod id;
mod tr;
mod cs;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn translate(name: String) -> String {
@ -48,6 +49,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"br" => ptbr::T.deref(),
"pt" => ptbr::T.deref(),
"tr" => tr::T.deref(),
"cs" => cs::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {