@@ -15,6 +15,7 @@ use std::{
1515use crate :: text:: { TextComponentBase , TextContent , style:: Style } ;
1616
1717static VANILLA_EN_US_JSON : & str = include_str ! ( "../../assets/en_us.json" ) ;
18+ static PUMPKIN_BRB_JSON : & str = include_str ! ( "../../assets/translations/brb.json" ) ;
1819static PUMPKIN_DE_DE_JSON : & str = include_str ! ( "../../assets/translations/de_de.json" ) ;
1920static PUMPKIN_EN_US_JSON : & str = include_str ! ( "../../assets/translations/en_us.json" ) ;
2021static 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