Skip to content

Commit 28e3035

Browse files
authored
Add support for Gujarati language in lang.rs (rustdesk#14751)
1 parent 2d41b3e commit 28e3035

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lang.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ mod es;
1616
mod et;
1717
mod eu;
1818
mod fa;
19+
mod gu;
1920
mod fr;
2021
mod he;
2122
mod hr;
@@ -95,6 +96,7 @@ pub const LANGS: &[(&str, &str)] = &[
9596
("ta", "தமிழ்"),
9697
("ge", "ქართული"),
9798
("fi", "Suomi"),
99+
("gu", "ગુજરાતી"),
98100
];
99101

100102
#[cfg(not(any(target_os = "android", target_os = "ios")))]
@@ -173,6 +175,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
173175
"sc" => sc::T.deref(),
174176
"ta" => ta::T.deref(),
175177
"ge" => ge::T.deref(),
178+
"gu" => gu::T.deref(),
176179
_ => en::T.deref(),
177180
};
178181
let (name, placeholder_value) = extract_placeholder(&name);

0 commit comments

Comments
 (0)