mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
Add Саха тыла (sah) launcher translation support
Registers Саха тыла as a launcher language with a full table translated from the English strings. Co-Authored-By: DeepSeek V4.1 Flash Free <[email protected]>
This commit is contained in:
1 parent
843e4c6eb4
commit
92043991e5
2 files changed
+1102
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -83,10 +83,12 @@ pub enum Language {
|
||||
Greek,
|
||||
#[serde(rename = "fa")]
|
||||
Persian,
|
||||
#[serde(rename = "sah")]
|
||||
Sakha,
|
||||
}
|
||||
|
||||
impl Language {
|
||||
pub const ALL: [Language; 35] = [
|
||||
pub const ALL: [Language; 36] = [
|
||||
Self::English,
|
||||
Self::French,
|
||||
Self::Russian,
|
||||
@@ -122,6 +124,7 @@ impl Language {
|
||||
Self::Swedish,
|
||||
Self::Greek,
|
||||
Self::Persian,
|
||||
Self::Sakha,
|
||||
];
|
||||
|
||||
/// Its code in `settings.json` and on the command line.
|
||||
@@ -162,6 +165,7 @@ impl Language {
|
||||
Self::Swedish => "sv",
|
||||
Self::Greek => "el",
|
||||
Self::Persian => "fa",
|
||||
Self::Sakha => "sah",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,6 +207,7 @@ impl Language {
|
||||
Self::Swedish => "Svenska",
|
||||
Self::Greek => "Ελληνικά",
|
||||
Self::Persian => "فارسی",
|
||||
Self::Sakha => "Саха тыла",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -286,6 +291,7 @@ impl Language {
|
||||
Self::Swedish => include_str!("../lang/sv.json"),
|
||||
Self::Greek => include_str!("../lang/el.json"),
|
||||
Self::Persian => include_str!("../lang/fa.json"),
|
||||
Self::Sakha => include_str!("../lang/sah.json"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user