Posted August 13, 20223 yr This is my localization file (en_us.json). { "item.modid.cobblestone_nugget": "Cobblestone nugget" } However, the name wasn't showed in game, and IntelliJ tells me "Translation key not included in default localization file". What is the "default localization file", and how do I include the key in it?
August 13, 20223 yr Where is the file in your Project located? I would highly recommend to use Datageneration for the data stuff (see: https://forge.gemwire.uk/wiki/Datageneration).
August 14, 20223 yr Author 18 hours ago, Luis_ST said: Where is the file in your Project located? It is located at resources/assets/(modid)/lang/
August 14, 20223 yr 20 hours ago, Infinitas64 said: "item.modid.cobblestone_nugget": "Cobblestone nugget" You need to put the modid of your mod and not the literal text "modid". Or did you just sanitize the modid before putting it here because you don't want to reveal your modid? 🤭 Another thing that could be the problem, you might need to refresh the project in your IDE if you externally modified the lang file. I know this is true for Eclipse at least, not sure about IntelliJ.
August 15, 20223 yr Author 20 hours ago, vemerion said: you might need to refresh the project in your IDE if you externally modified the lang file. I edited it in the IntelliJ project. And then it gives me this notification. On 8/13/2022 at 6:12 PM, Infinitas64 said: "Translation key not included in default localization file"
August 15, 20223 yr Aha, so you are using some kind of plugin for Minecraft modding for IntelliJ? Either way, en_us is the default localization file, so maybe the path is wrong somehow after all?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.