Per player localization
Guide to enable and use per player localization
In every one of your messages files, you can add a new section, named custom (which is already there if you do a fresh install:
custom:
something: Hello world
npc:
quests: <white>QuestsThese values are available in the AuroraQuests menus and other configs like quest complete/levelup messages. You can reference them as {{something}} or {{npc.quests}}. Notice the dot (.) notation for nested structures.
To enable per player localiaztion:
First, follow the steps, to enable it in Aurora:
Per player localizationGuide to use per player localizationthen in your config.yml you have to:
set
languageto your preferred defaultset
per-player-localetotrue
If you want to use these placeholders in menus, there is a handy utility in AuroraLib which lets you wrap lines by word count in any of the item lore options:
some-menu-item:
name: "{{my-item-name-language-placeholder}}"
slot: 1
lore:
- "[wrap:25] {{my-item-lore-language-placeholder}}"You can nest plugin placeholders like {name} , papi placeholders like %player_name% and language placeholders like {{language-placeholder}} in any depth.
Last updated