#
Basics
On first install, nightcore based plugins will generate default config files and extract premade translations into /lang/ directory.
Also, nightcore will try to download lang assets for your system language into /nightcore/lang/ directory:
- Files with
messages_
prefix contains translations for plugin's messages. Some of nightcore messages are shared with nightcore plugins. - Files with
assets_
prefix contains translations for in-game objects, such as blocks, items. They are used in a lot of nightcore plugins.
If you need to update your assets files, delete them from the /lang/ directory or download them manually.
If you have console warn saying Could not download language assets for
, then there is no assets for your language or there is some issues with your internet connection.
You can download them manually from Github
#
Setup Language
- Check out the /lang/ directory for available translations.
- Set desired translation code to the
Plugin.Language
field in the config.yml.
If you want to create a new translation, it's recommended to duplicate the original messages_en.yml lang file instead of translated ones.
Translation code is file name without messages_
prefix and .yml
extension.
messages_en.yml
= Plugin.Language: en
messages_de.yml
= Plugin.Language: de
messages_zh_cn.yml
= Plugin.Language: zh_cn
If you have console warn saying Locale file for ... language not found
, then there is no translation for your language or you didn't set it in the Plugin.Language
field.