Sardinian translation (#10941)

* Sardinian translation

Sardinian ("Sardu", ISO 639-1 code: "sc") translation.

* Update lang.rs

* Corrected typo
This commit is contained in:
asereze
2025-03-01 11:39:58 +01:00
committed by GitHub
parent 41cd375e3c
commit e17ab74040
2 changed files with 664 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ mod pl;
mod ptbr;
mod ro;
mod ru;
mod sc;
mod sk;
mod sl;
mod sq;
@@ -87,6 +88,7 @@ pub const LANGS: &[(&str, &str)] = &[
("ar", "العربية"),
("he", "עברית"),
("hr", "Hrvatski"),
("sc", "Sardu"),
];
#[cfg(not(any(target_os = "android", target_os = "ios")))]
@@ -161,6 +163,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"be" => be::T.deref(),
"he" => he::T.deref(),
"hr" => hr::T.deref(),
"sc" => sc::T.deref(),
_ => en::T.deref(),
};
let (name, placeholder_value) = extract_placeholder(&name);