feat: add Italian translation (#1718)

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
This commit is contained in:
Illyrius
2026-03-03 17:26:56 +01:00
committed by GitHub
parent cb845f9a0f
commit b66a9a3342
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"commands.pumpkin.version": "Pumpkin %s\n",
"commands.pumpkin.description": "Dà a tutti la possibilità di ospitare server Minecraft \nveloci ed efficienti.\n",
"commands.pumpkin.minecraft_version": "(Minecraft %1$s, Protocollo %2$s)\n",
"commands.pumpkin.github": "[Repository GitHub]",
"commands.pumpkin.website": "[Sito web]",
"commands.pumpkin.version.hover": "Clicca per copiare la versione",
"commands.pumpkin.description.hover": "Clicca per copiare la descrizione",
"commands.pumpkin.minecraft_version.hover": "Clicca per copiare la versione di Minecraft",
"commands.pumpkin.github.hover": "Clicca per aprire il repository.",
"commands.pumpkin.website.hover": "Clicca per aprire il sito web."
}

View File

@@ -19,6 +19,7 @@ static PUMPKIN_DE_DE_JSON: &str = include_str!("../../assets/translations/de_de.
static PUMPKIN_EN_US_JSON: &str = include_str!("../../assets/translations/en_us.json");
static PUMPKIN_ES_ES_JSON: &str = include_str!("../../assets/translations/es_es.json");
static PUMPKIN_FR_FR_JSON: &str = include_str!("../../assets/translations/fr_fr.json");
static PUMPKING_IT_IT_JSON: &str = include_str!("../../assets/translations/it_it.json");
static PUMPKIN_JA_JP_JSON: &str = include_str!("../../assets/translations/ja_jp.json");
static PUMPKIN_KA_GE_JSON: &str = include_str!("../../assets/translations/ka_ge.json");
static PUMPKIN_KO_KR_JSON: &str = include_str!("../../assets/translations/ko_kr.json");
@@ -220,6 +221,8 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::COUNT]
serde_json::from_str(PUMPKIN_ES_ES_JSON).expect("Could not parse es_es.json.");
let pumpkin_fr_fr: HashMap<String, String> =
serde_json::from_str(PUMPKIN_FR_FR_JSON).expect("Could not parse fr_fr.json.");
let pumpkin_it_it: HashMap<String, String> =
serde_json::from_str(PUMPKING_IT_IT_JSON).expect("Could not parse it_it.json.");
let pumpkin_ja_jp: HashMap<String, String> =
serde_json::from_str(PUMPKIN_JA_JP_JSON).expect("Could not parse ja_jp.json.");
let pumpkin_ka_ge: HashMap<String, String> =
@@ -270,6 +273,9 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::COUNT]
for (key, value) in pumpkin_fr_fr {
array[Locale::FrFr as usize].insert(format!("pumpkin:{key}"), value);
}
for (key, value) in pumpkin_it_it {
array[Locale::ItIt as usize].insert(format!("pumpkin:{key}"), value);
}
for (key, value) in pumpkin_ja_jp {
array[Locale::JaJp as usize].insert(format!("pumpkin:{key}"), value);
}