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