Skip to content

Translation

Daniel Perales Mauriz edited this page Apr 21, 2022 · 36 revisions

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.

Supported languages

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

Additional languages

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.

Comodines

Son obligatorios: {{}} *

{{}} `` **** ____ __ \"\"

Clone this wiki locally