base Name To Locales Map
Mappings between the base bundle name and the locales it supports.
The file can be anywhere and of any extension, as long as it can be read by a LocalizationMapReader.
To know the final name of your file, which in most cases is <name>_<language>_<country>.<extension>
, you can take a look at the language tag of your DiscordLocale, replacing the -
(hyphen) by a _
(underscore).
For example, MyCommands
->[DiscordLocale.GERMAN, DiscordLocale.FRENCH, DiscordLocale.SPANISH]
will, by default, read in the /bc_localization
folder:
DiscordLocale.GERMAN
->de
->MyCommands_de.json
DiscordLocale.FRENCH
->fr
->MyCommands_fr.json
DiscordLocale.SPANISH
->es-ES
->es_ES
->MyCommand_es_ES.json
Spring property: botcommands.application.localizations
; Append the bundle name to the key, and have the values be the locales, for example, botcommands.application.localizations.MyBundle=english_us,german,french
.