Skip to content

Commit

Permalink
Merge pull request rustdesk#5516 from iAbdullah/master-ar
Browse files Browse the repository at this point in the history
Add Arabic translation
  • Loading branch information
rustdesk authored Aug 27, 2023
2 parents bc7df4c + 26ef253 commit f309ae0
Show file tree
Hide file tree
Showing 2 changed files with 548 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ mod tw;
mod ua;
mod vn;
mod lt;
mod ar;

pub const LANGS: &[(&str, &str)] = &[
("en", "English"),
Expand Down Expand Up @@ -68,6 +69,7 @@ pub const LANGS: &[(&str, &str)] = &[
("sl", "Slovenščina"),
("ro", "Română"),
("lt", "Lietuvių"),
("ar", "العربية"),
];

#[cfg(not(any(target_os = "android", target_os = "ios")))]
Expand Down Expand Up @@ -132,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) {
Expand Down
Loading

0 comments on commit f309ae0

Please sign in to comment.