Create Hi.rs (#12482)

* Create Hi.rs

Added hindi translation file

* Create Gu.rs

Added Gujarati translation file

* Create Ml.rs

Added Malayalam translation file

* Update lang.rs

* Rename Gu.rs to gu.rs

* Rename Ml.rs to ml.rs

changed name to correct format

* Rename Hi.rs to hi.rs

changed name to correct format
This commit is contained in:
Leo Louis
2025-08-21 09:50:48 +05:30
committed by GitHub
parent ad396b4155
commit 74752bbd2f
4 changed files with 2151 additions and 0 deletions

View File

@@ -17,7 +17,9 @@ mod et;
mod eu;
mod fa;
mod fr;
mod gu;
mod he;
mod hi;
mod hr;
mod hu;
mod id;
@@ -27,6 +29,7 @@ mod ko;
mod kz;
mod lt;
mod lv;
mod ml;
mod nb;
mod nl;
mod pl;
@@ -93,6 +96,9 @@ pub const LANGS: &[(&str, &str)] = &[
("sc", "Sardu"),
("ta", "தமிழ்"),
("ge", "ქართული"),
("hi", "हिंदी"),
("gu", "ગુજરાતી"),
("ml", "മലയാളം"),
];
#[cfg(not(any(target_os = "android", target_os = "ios")))]
@@ -170,6 +176,9 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"sc" => sc::T.deref(),
"ta" => ta::T.deref(),
"ge" => ge::T.deref(),
"hi" => hi::T.deref(),
"ml" => ml::T.deref(),
"gu" => gu::T.deref(),
_ => en::T.deref(),
};
let (name, placeholder_value) = extract_placeholder(&name);