mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-10 23:01:14 +03:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user