add hebrew translation (#7391)

* add hebrew translation

* Update lang.rs

---------

Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
DeDuplicateandRustDesk authored and GitHub committed 2024-03-15 10:18:08 +08:00
1 parent cde235896f
commit a6aabed6a1
2 files changed
+221

No files matched your search

+3
View File
@@ -39,6 +39,7 @@ mod tr;
mod tw;
mod ua;
mod vn;
mod he;
pub const LANGS: &[(&str, &str)] = &[
("en", "English"),
@@ -79,6 +80,7 @@ pub const LANGS: &[(&str, &str)] = &[
("lt", "Lietuvių"),
("lv", "Latviešu"),
("ar", "العربية"),
("he", "עברית"),
];
#[cfg(not(any(target_os = "android", target_os = "ios")))]
@@ -149,6 +151,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"lv" => lv::T.deref(),
"ar" => ar::T.deref(),
"bg" => bg::T.deref(),
"he" => he::T.deref(),
_ => en::T.deref(),
};
let (name, placeholder_value) = extract_placeholder(&name);