mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
Add Кыргызча (ky) 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
3a17d0ae4d
commit
567bdff46b
2 files changed
+1059
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
+13
-1
@@ -65,10 +65,14 @@ pub enum Language {
|
||||
Slovak,
|
||||
#[serde(rename = "lt")]
|
||||
Lithuanian,
|
||||
#[serde(rename = "lb")]
|
||||
Luxembourgish,
|
||||
#[serde(rename = "ky")]
|
||||
Kyrgyz,
|
||||
}
|
||||
|
||||
impl Language {
|
||||
pub const ALL: [Language; 26] = [
|
||||
pub const ALL: [Language; 28] = [
|
||||
Self::English,
|
||||
Self::French,
|
||||
Self::Russian,
|
||||
@@ -95,6 +99,8 @@ impl Language {
|
||||
Self::Bulgarian,
|
||||
Self::Slovak,
|
||||
Self::Lithuanian,
|
||||
Self::Luxembourgish,
|
||||
Self::Kyrgyz,
|
||||
];
|
||||
|
||||
/// Its code in `settings.json` and on the command line.
|
||||
@@ -126,6 +132,8 @@ impl Language {
|
||||
Self::Bulgarian => "bg",
|
||||
Self::Slovak => "sk",
|
||||
Self::Lithuanian => "lt",
|
||||
Self::Luxembourgish => "lb",
|
||||
Self::Kyrgyz => "ky",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,6 +166,8 @@ impl Language {
|
||||
Self::Bulgarian => "Български",
|
||||
Self::Slovak => "Slovenčina",
|
||||
Self::Lithuanian => "Lietuvių",
|
||||
Self::Luxembourgish => "Lëtzebuergesch",
|
||||
Self::Kyrgyz => "Кыргызча",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,6 +242,8 @@ impl Language {
|
||||
Self::Bulgarian => include_str!("../lang/bg.json"),
|
||||
Self::Slovak => include_str!("../lang/sk.json"),
|
||||
Self::Lithuanian => include_str!("../lang/lt.json"),
|
||||
Self::Luxembourgish => include_str!("../lang/lb.json"),
|
||||
Self::Kyrgyz => include_str!("../lang/ky.json"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user