Jump to content

What's the problem with the localization file?


Infinitas64

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.