add fa in lang.rs

This commit is contained in:
rustdesk 2022-11-08 15:52:41 +08:00
parent f31ed8d13b
commit c9a00f8247

View File

@ -23,6 +23,7 @@ mod tw;
mod vn;
mod kz;
mod ua;
mod fa;
lazy_static::lazy_static! {
pub static ref LANGS: Value =
@ -49,6 +50,7 @@ lazy_static::lazy_static! {
("ko", "한국어"),
("kz", "Қазақ"),
("ua", "Українська"),
("fa", "فارسی"),
]);
}
@ -99,6 +101,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"ko" => ko::T.deref(),
"kz" => kz::T.deref(),
"ua" => ua::T.deref(),
"fa" => fa::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {