mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
Add Esperanto (eo) launcher translation support
Registers Esperanto 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
cc57fd06c8
2 files changed
+1053
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -65,10 +65,12 @@ pub enum Language {
|
||||
Slovak,
|
||||
#[serde(rename = "lt")]
|
||||
Lithuanian,
|
||||
#[serde(rename = "eo")]
|
||||
Esperanto,
|
||||
}
|
||||
|
||||
impl Language {
|
||||
pub const ALL: [Language; 26] = [
|
||||
pub const ALL: [Language; 27] = [
|
||||
Self::English,
|
||||
Self::French,
|
||||
Self::Russian,
|
||||
@@ -95,6 +97,7 @@ impl Language {
|
||||
Self::Bulgarian,
|
||||
Self::Slovak,
|
||||
Self::Lithuanian,
|
||||
Self::Esperanto,
|
||||
];
|
||||
|
||||
/// Its code in `settings.json` and on the command line.
|
||||
@@ -126,6 +129,7 @@ impl Language {
|
||||
Self::Bulgarian => "bg",
|
||||
Self::Slovak => "sk",
|
||||
Self::Lithuanian => "lt",
|
||||
Self::Esperanto => "eo",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,6 +162,7 @@ impl Language {
|
||||
Self::Bulgarian => "Български",
|
||||
Self::Slovak => "Slovenčina",
|
||||
Self::Lithuanian => "Lietuvių",
|
||||
Self::Esperanto => "Esperanto",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,6 +237,7 @@ impl Language {
|
||||
Self::Bulgarian => include_str!("../lang/bg.json"),
|
||||
Self::Slovak => include_str!("../lang/sk.json"),
|
||||
Self::Lithuanian => include_str!("../lang/lt.json"),
|
||||
Self::Esperanto => include_str!("../lang/eo.json"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user