mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-08 07:08:09 +03:00
Add support for Gujarati language in lang.rs (#14751)
This commit is contained in:
@@ -16,6 +16,7 @@ mod es;
|
|||||||
mod et;
|
mod et;
|
||||||
mod eu;
|
mod eu;
|
||||||
mod fa;
|
mod fa;
|
||||||
|
mod gu;
|
||||||
mod fr;
|
mod fr;
|
||||||
mod he;
|
mod he;
|
||||||
mod hr;
|
mod hr;
|
||||||
@@ -95,6 +96,7 @@ pub const LANGS: &[(&str, &str)] = &[
|
|||||||
("ta", "தமிழ்"),
|
("ta", "தமிழ்"),
|
||||||
("ge", "ქართული"),
|
("ge", "ქართული"),
|
||||||
("fi", "Suomi"),
|
("fi", "Suomi"),
|
||||||
|
("gu", "ગુજરાતી"),
|
||||||
];
|
];
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
@@ -173,6 +175,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
|||||||
"sc" => sc::T.deref(),
|
"sc" => sc::T.deref(),
|
||||||
"ta" => ta::T.deref(),
|
"ta" => ta::T.deref(),
|
||||||
"ge" => ge::T.deref(),
|
"ge" => ge::T.deref(),
|
||||||
|
"gu" => gu::T.deref(),
|
||||||
_ => en::T.deref(),
|
_ => en::T.deref(),
|
||||||
};
|
};
|
||||||
let (name, placeholder_value) = extract_placeholder(&name);
|
let (name, placeholder_value) = extract_placeholder(&name);
|
||||||
|
|||||||
Reference in New Issue
Block a user