Language Files
Everything in Nova has to be localized which is why language files are very important. To start off, create a folder
calledlang
in your assets
root folder. Here you can create language files for your addon. The format for these
files is the same the one minecraft uses. If you need the locale code for a language, you can search for
it here.
Warning
Make sure to use the "in-game" locale code since ISO-639-3 isn't implemented by Minecraft yet
To start off, create a file called en_us.json
in the lang
folder. The format [<type>].<namespace/addon-id>.<item>
should be used for the translations keys. The type can be left out if it's a generic message. In general, the following
types should be used:
item
- For translations related to itemsblock
- For translations related to blocksmenu
- For GUI related translationsinventory
- For VirtualInventory namescontainer
- For fluid container namescommand
- For command responsesadvancement
- For advancements
You can of course use your own type names, just make sure to include your addons namespace in the key.
{
"item.example.ruby": "Ruby",
"block.example.solar_panel": "Solar Panel",
"advancement.example.ruby.title": "Ruby",
"advancement.example.ruby.description": "Acquire a ruby",
"advancement.example.solar_panel.title": "Clean Energy",
"advancement.example.solar_panel.description": "Craft a Solar Panel"
}