Skip to content

Commit 4054be0

Browse files
authored
feat: brb translation (#1727)
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
1 parent b66a9a3 commit 4054be0

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

assets/translations/brb.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"commands.pumpkin.version": "Pumpkin %s\n",
3+
"commands.pumpkin.description": "Geeft iedereen de kracht om snelle \nen efficiënte Minecraft-servers te hosten.\n",
4+
"commands.pumpkin.minecraft_version": "(Minecraft %1$s, Protocol %2$s)\n",
5+
"commands.pumpkin.github": "[GitHub-repository]",
6+
"commands.pumpkin.website": "[Website]",
7+
"commands.pumpkin.version.hover": "Klik om de versie te kopiëren",
8+
"commands.pumpkin.description.hover": "Klik om de beschrijving te kopiëren",
9+
"commands.pumpkin.minecraft_version.hover": "Klik om de Minecraft-versie te kopiëren",
10+
"commands.pumpkin.github.hover": "Klik om de repository te openen.",
11+
"commands.pumpkin.website.hover": "Klik om de website te openen."
12+
}

pumpkin-util/src/translation.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use std::{
1515
use crate::text::{TextComponentBase, TextContent, style::Style};
1616

1717
static VANILLA_EN_US_JSON: &str = include_str!("../../assets/en_us.json");
18+
static PUMPKIN_BRB_JSON: &str = include_str!("../../assets/translations/brb.json");
1819
static PUMPKIN_DE_DE_JSON: &str = include_str!("../../assets/translations/de_de.json");
1920
static PUMPKIN_EN_US_JSON: &str = include_str!("../../assets/translations/en_us.json");
2021
static PUMPKIN_ES_ES_JSON: &str = include_str!("../../assets/translations/es_es.json");
@@ -213,6 +214,8 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::COUNT]
213214
std::array::from_fn(|_| HashMap::new());
214215
let vanilla_en_us: HashMap<String, String> =
215216
serde_json::from_str(VANILLA_EN_US_JSON).expect("Could not parse en_us.json.");
217+
let pumpkin_brb: HashMap<String, String> =
218+
serde_json::from_str(PUMPKIN_BRB_JSON).expect("Could not parse brb.json.");
216219
let pumpkin_de_de: HashMap<String, String> =
217220
serde_json::from_str(PUMPKIN_DE_DE_JSON).expect("Could not parse de_de.json.");
218221
let pumpkin_en_us: HashMap<String, String> =
@@ -261,6 +264,9 @@ pub static TRANSLATIONS: LazyLock<Mutex<[HashMap<String, String>; Locale::COUNT]
261264
for (key, value) in vanilla_en_us {
262265
array[Locale::EnUs as usize].insert(format!("minecraft:{key}"), value);
263266
}
267+
for (key, value) in pumpkin_brb {
268+
array[Locale::Brb as usize].insert(format!("pumpkin:{key}"), value);
269+
}
264270
for (key, value) in pumpkin_de_de {
265271
array[Locale::DeDe as usize].insert(format!("pumpkin:{key}"), value);
266272
}

0 commit comments

Comments
 (0)