# Languages

## <mark style="color:red;">▸Location</mark>

```
lua\modules\hudhive\lang
```

## <mark style="color:red;">▸Add Language</mark>

* [ ] Copy the <mark style="color:blue;">**`lua\modules\hudhive\lang\en.lua`**</mark> file
* [ ] Rename copied <mark style="color:orange;">**en.lua**</mark> file to your own language
  * Example: <mark style="color:blue;">**`lua\modules\hudhive\lang\ru.lua`**</mark> ( russian )
* [ ] Open the new language file in a text editor.
* [ ] Locate the line:&#x20;
  * `mod.language[ 'en' ]`
* [ ] Change the line to your new language:&#x20;
  * `mod.language[ 'ru' ]`
* [ ] Translate all of the strings to your own language.

## <mark style="color:red;">▸Default Language</mark>

* [ ] Open the folder <mark style="color:blue;">**`lua\modules\hudhive\lang\`**</mark>
* [ ] Find the filename for the language you want to make as your default
* [ ] Open <mark style="color:blue;">**lua\modules\hudhive\cfg\sh\_0\_lang.lua**</mark>
* [ ] Change <mark style="color:blue;">**en**</mark> to your own language's filename (without the .lua at the end)

Your language settings file should look like the following:

{% code title="lua\modules\hudhive\cfg\sh\_0\_lang.lua" %}

```
cfg.lang = 'ru' -- russian
```

{% endcode %}

Restart the server for changes to take effect.

## <mark style="color:red;">▸Switching Language</mark>

You can switch languages in-game on-the-fly by typing <mark style="color:blue;">**`!lang`**</mark> in chat.

<figure><img src="https://2289536656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZp3jUdXDibQiEae44O8V%2Fuploads%2FQ8qNg1pOzn02i11DfTgo%2Flang.gif?alt=media&#x26;token=2f0fadd8-b5f3-4289-a4c5-93962edd2c8e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The languages in the list are a compiled set from all the addons you own running rlib. If you own multiple scripts, but only have French translations for one; then the one addon will be translated to French and the others will default to English.
{% endhint %}
