-
Notifications
You must be signed in to change notification settings - Fork 2
Translation
The bot has been designed to work in multiple languages, displaying the dialogs (both console and user interactions) in one of the languages available in the directory ./resources/locales and configured in the file ./configs/main.json.
To set the bot's language to something other than English (by default), you must modify the language key in the configuration file main.json and place in that field any of the ISO 639-1 codes from the list shown below:
| Language | Code | Author |
|---|---|---|
| English | en |
EasyXploit |
| Spanish | es |
EasyXploit |
You can create your own translations into the languages you want by creating a copy of one of the language files contained in the directory ./resources/locales, changing its name to another (we recommend following the ISO 639-1 standard), respecting the .json extension of the file, saving it in the same directory as the rest of the languages and modifying ONLY the values of the keys according to the JSON specification.
For example, a translation from English to Spanish would look like this:
-
Original in English:
"configError": "Error loading command" -
Translated to Spanish:
"configError": "Error al cargar el comando"
Once you have everything translated, you must configure the language key of the file ./configs/main.json with the name of the language file you created (without the .json extension), and after restarting the bot, it will start using the new language.
Son obligatorios: {{}} *
💡 In case you have any questions about how to use the bot, or anything else related to this repository, you can make use of the support Discord Server.