Add Malti (mt) launcher translation support

Registers Malti 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:
dontstopgorkingitandDeepSeek V4.1 Flash Free committed 2026-11-03 19:12:59 +01:00
1 parent 3a17d0ae4d
commit 26207e4532
2 files changed
+1053 -1

No files matched your search

File diff suppressed because it is too large. Load diff
+7 -1
View File
@@ -65,10 +65,12 @@ pub enum Language {
Slovak,
#[serde(rename = "lt")]
Lithuanian,
#[serde(rename = "mt")]
Maltese,
}
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::Maltese,
];
/// 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::Maltese => "mt",
}
}
@@ -158,6 +162,7 @@ impl Language {
Self::Bulgarian => "Български",
Self::Slovak => "Slovenčina",
Self::Lithuanian => "Lietuvių",
Self::Maltese => "Malti",
}
}
@@ -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::Maltese => include_str!("../lang/mt.json"),
}
}
}