feat: add hr_hr translation (#2529)

Co-authored-by: Tomislav Andric <tomo@Tomislavs-MacBook-Pro.local>
This commit is contained in:
Tomislav
2026-08-03 05:35:49 +02:00
committed by GitHub
parent d1aba46e48
commit ba95a301c1
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"commands.pumpkin.version": "Pumpkin %s\n",
"commands.pumpkin.description": "Omogućuje svima pokretanje brzih \ni učinkovitih Minecraft servera.\n",
"commands.pumpkin.minecraft_version": "(Minecraft %s, Protokol %s)\n",
"commands.pumpkin.github": "[GitHub Repozitorij]",
"commands.pumpkin.website": "[Web-stranica]",
"commands.pumpkin.version.hover": "Klikni za kopiranje verzije",
"commands.pumpkin.description.hover": "Klikni za kopiranje opisa",
"commands.pumpkin.minecraft_version.hover": "Klikni za kopiranje Minecraft verzije",
"commands.pumpkin.github.hover": "Klikni za otvaranje repozitorija.",
"commands.pumpkin.website.hover": "Klikni za otvaranje stranice."
}

View File

@@ -20,6 +20,7 @@ static PUMPKIN_BRB_JSON: &str = include_str!("../../assets/translations/brb.json
static PUMPKIN_DE_DE_JSON: &str = include_str!("../../assets/translations/de_de.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 PUMPKIN_HR_HR_JSON: &str = include_str!("../../assets/translations/hr_hr.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");
@@ -284,6 +285,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_hr_hr: HashMap<String, String> =
serde_json::from_str(PUMPKIN_HR_HR_JSON).expect("Could not parse hr_hr.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> =
@@ -341,6 +344,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_hr_hr {
array[Locale::HrHr as usize].insert(format!("pumpkin:{key}"), value);
}
for (key, value) in pumpkin_it_it {
array[Locale::ItIt as usize].insert(format!("pumpkin:{key}"), value);
}