mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
Add Vèneto (vec) launcher translation support
Registers Vèneto 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
36e36b063d
commit
3cfd9dac2d
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 = "vec")]
|
||||
Venetian,
|
||||
}
|
||||
|
||||
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::Venetian,
|
||||
];
|
||||
|
||||
/// 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::Venetian => "vec",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,6 +207,7 @@ impl Language {
|
||||
Self::Swedish => "Svenska",
|
||||
Self::Greek => "Ελληνικά",
|
||||
Self::Persian => "فارسی",
|
||||
Self::Venetian => "Vèneto",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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::Venetian => include_str!("../lang/vec.json"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user