Add Malayalam language support (#14753)

* Add Malayalam language support

* Fix syntax error in language list for Malayalam

---------

Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
Leo Louis
2026-04-22 15:36:10 +05:30
committed by GitHub
parent 348d1b46e1
commit 9bc1ce52af

View File

@@ -49,6 +49,7 @@ mod vi;
mod ta; mod ta;
mod ge; mod ge;
mod fi; mod fi;
mod ml;
pub const LANGS: &[(&str, &str)] = &[ pub const LANGS: &[(&str, &str)] = &[
("en", "English"), ("en", "English"),
@@ -97,6 +98,7 @@ pub const LANGS: &[(&str, &str)] = &[
("ta", "தமிழ்"), ("ta", "தமிழ்"),
("ge", "ქართული"), ("ge", "ქართული"),
("fi", "Suomi"), ("fi", "Suomi"),
("ml", "മലയാളം"),
("hi", "हिंदी"), ("hi", "हिंदी"),
("gu", "ગુજરાતી"), ("gu", "ગુજરાતી"),
]; ];
@@ -177,6 +179,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(),
"ml" => ml::T.deref(),
"hi" => hi::T.deref(), "hi" => hi::T.deref(),
"gu" => gu::T.deref(), "gu" => gu::T.deref(),
_ => en::T.deref(), _ => en::T.deref(),