This tutorial assumes you have already

You’ve probably noticed by now that both our example item or our mod’s ItemGroup have weird names. unlocalised This is because we don’t have any localisations for our objects yet.

Localisation/Internationalisation
Users from multiple different areas will use our mod so we need to be able to provide different names for our objects in different languages. Localisation files allow us to do this by specifying translations that the game uses to map the Translation Keys of our objects to translated text. Read much more

A localisation file (or “.lang” file on older versions) provides translations for a specific language. We’re going to add some translations for our objects. Localisation files are named after the ISO language code for their language. The default language is American English which has the code “en_us”. Find other language codes here.

Create a new file called “en_us.json” at src/main/resources/assets/examplemod/lang/ and paste the following text into it

{
	"item.examplemod.example_item": "Example Item",
	"itemGroup.examplemod": "Example Mod"
}

Each line is a key->value pairing where the key is the Translation Key of one of our objects and the value is the translated name for the object. localised

1.9 - First Block