Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
104 stars 27 forks source link

Translations not working #66

Closed KernelFreeze closed 2 years ago

KernelFreeze commented 2 years ago

Helllo! I tried added translations to my blocks using the following code but it's not working

 RESOURCE_PACK.mergeLang(id(MyAwesomeMod.MOD_ID, "en_us"),
            JLang.lang().block(identifier, "Test Slab"));

I tried with the Minecraft namespace too, but still doesn't work

 RESOURCE_PACK.mergeLang(id("en_us"),
            JLang.lang().block(identifier, "Test Slab"));

Also I tried by changing the language to "en-us" but nope, doesn't work. And by debugging the language file generation, everything is looking fine so I have no idea what could be happening 😭

Devan-Kerman commented 2 years ago

is it just the translations that aren't working, or is it all resources/data

KernelFreeze commented 2 years ago

Just translations, other resources work fine

Devan-Kerman commented 2 years ago

next update may fix this

SolidBlock-cn commented 2 years ago

You can set dump\ assets=true in your rrp.properties (in the config) folder, and then check in the rrp.debug folder whether the language file is correct.

Devan-Kerman commented 2 years ago

see if it's fixed, it should be

KernelFreeze commented 2 years ago

Just checked the latest version and now lang files are working but mergeLang only writes the first call of it, and subsequent calls don't work, I have only a single entry on my lang file :(

Devan-Kerman commented 2 years ago

fixed in next update