#
Post-Setup
On first install, nightcore based plugins will generate default config files and extract premade translations into /lang/ directory.
Here are recommended post-setup steps for all nightcore based plguins.
#
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.