# Additional Configurations

## 1. Configure language

### Change default language <a href="#change-default-language" id="change-default-language"></a>

To change the language of our Dynasty Miner, we must go to **dynasty\_miner/config/translations.lua**

By default, we will find this in the first few lines:

```lua
--- Select your language here.
--- Available languages: en, it, es, fr, pt, de, ru, tr, nl, cn, zh-tw
--- But you can modify them or create your own language below.
Config.Language = "en"
```

{% hint style="info" %}
Note: To change the language, just replace the text in quotes by the one you want from the options.
{% endhint %}

### Bad or missing translation <a href="#bad-or-missing-translation" id="bad-or-missing-translation"></a>

The Dynasty Miner is translated into many languages, but since we are not speakers of all the available languages, there may be errors in the translation, here is the solution:

In **dynasty\_miner/config/translations.lua**, if you scroll down, you will find the translations, they will look like this, we will take the French translation as an example, but it is the same for all

```lua
    ['fr'] = {
        ---@TargetScriptOptions
        ["TARGET_START_WORKING"] = "Commencer à travailler",
        ["TARGET_STOP_WORKING"] = "Arrêter de travailler",
        ["TARGET_BUY_PICKAXE"] = "Acheter une pioche",
        ["TARGET_MINE_ORE"] = "Extraire le minerai",
        ["TARGET_COLLECT_ORE"] = "Collecter le minerai",
        ["TARGET_DEPOSIT_ORE"] = "Déposer le minerai",

        ---@Notifications
        ["NOTIFY_DROP_WEAPON"] = "Vous devez d'abord ranger votre arme",
        ["NOTIFY_BUSY_ORE"] = "Ce minerai est occupé !",
        ["NOTIFY_ALREADY_PERFORMING_ACTION"] = "Vous effectuez déjà une action",
        ["NOTIFY_NEED_PICKAXE_IN_HAND"] = "Vous devez avoir une pioche en main",
        ["NOTIFY_YOU_HAVE_NOTHING_TO_DEPOSIT"] = "Vous n'avez rien à déposer",
        ["NOTIFY_YOU_ARE_NOT_ON_DUTY"] = "Vous n'êtes pas en service",
        ["NOTIFY_NOT_ENOUGH_MONEY"] = "Vous n'avez pas assez d'argent",
        ["NOTIFY_NOT_ENOUGH_LEVEL"] = "Vous n'avez pas assez de niveau, vous devez être de niveau ",
        ["NOTIFY_LEVEL_UP"] = "Vous êtes passé au niveau ",
        ["NOTIFY_GOT_PAYMENT"] = "Vous avez reçu un paiement de : $",
        ["NOTIFY_ALREADY_HAVE_PICKAXE"] = "Vous avez déjà une pioche",
        ["NOTIFY_CONTINUE_MISSION_OR_GET_PAYMENT"] =
        "Continuez à collecter des minéraux ou, si vous souhaitez recevoir le paiement, parlez à nouveau au gestionnaire pour terminer la mission",
        ["NOTIFY_ALREADY_ON_DUTY"] = "Vous travaillez déjà !",
        ["NOTIFY_NOT_ON_DUTY"] = "Vous ne travaillez pas !",

        ---@Hint Notifications
        ["HINT_PUT_PICKAXE_IN_BELT"] = "~INPUT_MULTIPLAYER_INFO~ Mettez la pioche à la ceinture",
        ["HINT_PUT_PICKAXE_IN_HAND"] = "~INPUT_MULTIPLAYER_INFO~ Mettez la pioche en main",
        ["HINT_DROP_STONE"] = "~INPUT_PICKUP~ Lâcher le minerai",
        ["HINT_START_WORKING"] = "~INPUT_PICKUP~ Commencer à travailler",
        ["HINT_STOP_WORKING"] = "~INPUT_PICKUP~ Arrêter de travailler",
        ["HINT_BUY_PICKAXE"] = "~INPUT_PICKUP~ Acheter une pioche",
        ["HINT_PUT_STONE_CONVEYOR"] = "~INPUT_PICKUP~ Placer le minerai dans le convoyeur",
        ["HINT_MINE_ORE"] = "~INPUT_PICKUP~ Extraire le minerai",
        ["HINT_PICKUP_STONE"] = "~INPUT_PICKUP~ Collecter le minerai",

        ---@Help Notifications
        ["HELP_TEXT_BUY_PICKAXE"] = "Vous devez acheter une pioche",
        ["HELP_TEXT_MINE_ORE"] = "Allez vers un minerai et minez-le",
        ["HELP_TEXT_COLLECT_ORE"] = "Collectez le minerai",
        ["HELP_TEXT_DEPOSIT_ORE"] = "Déposez le minerai dans le convoyeur",

        ---@Menu
        ["LEVEL_TEXT"] = "Niveau",
        ["MAX_LEVEL_TEXT"] = "Niveau Max",
        ["TOTAL_MINERALS_TEXT"] = "Minéraux totaux :",
        ["INPUT_HIDE_MENU"] = 'Appuyez sur ~INPUT_DETONATE~ pour masquer le menu',
        ["INPUT_SHOW_MENU"] = 'Appuyez sur ~INPUT_DETONATE~ pour afficher le menu',
        ["CURRENCY_TYPE"] = "$",

        ---@Ores
        ["COAL"] = "Charbon",
        ["GOLD"] = "Or",
        ["EMERALD"] = "Émeraude",
        ["RUBY"] = "Rubis",
        ["AMETHYST"] = "Améthyste",
        ["DIAMOND"] = "Diamant",

    },
```

{% hint style="info" %}
Note: To solve the translations, simply change the text of the words that are in quotes for those that correctly adapt to your language.
{% endhint %}

If your language is not in the list of translations, simply copy another existing translation and paste it below the others, you should replace the name of the translation, **\['fr']** in the case above, by letters that are identified with the name of your language, and finally, change it also in **Config.Languages** in the first lines of config.
