feat(i18n): rework i18n to get locale from player

This commit is contained in:
aroooo 2022-10-27 18:39:25 +02:00
parent fa32baf26a
commit af6e031995
4 changed files with 43 additions and 18 deletions

View file

@ -4,6 +4,7 @@ prefix: "§8[§6Nicko§8] "
bungeecord:
# Enables Bungeecord support, switching through servers will keep player's skins.
# Accepted values: false (Disabled), true (Enabled)
enabled: false
redis:
username: ""
@ -11,10 +12,11 @@ bungeecord:
# Time To Live, the time the data will be stored on a player-by-player basis.
ttl: -1
disguisekit:
# The rainbow header text in the book.
header: "Nicko's Disguise Kit"
# Localisation:
# By default, Nicko tries to get the locale from the player's options.
# If that fails, the locale fallback is the one provided by this option.
# Accepted values: fr (French), en (English), custom (Custom language file).
locale: "en"
storage:
# Indicates wherever the data will be stored