# Languages

## ▸Location

All languages included with script are located in **`lua\modules\apollo\lang`**

####

## ▸Add Language

* Copy the **lua\modules\apollo\lang\en.lua** file
* Rename copied en.lua file to your own language
  * Example: **lua\modules\apollo\lang\ru.lua** ( 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.

####

## ▸Set Default Language

* Open the folder **lua\modules\apollo\lang\\**
* Find the filename for the language you want to make as your default
* Open **lua\modules\apollo\cfg\sh\_cfg.lua**
* Locate the setting **cfg.lang**
* Change **'en'** to your own language's filename (without the .lua at the end)

```lua
cfg.lang = 'ru' -- russian
cfg.lang = 'es' -- spanish
cfg.lang = 'fr' -- french
```

* Restart your server if changes do not get applied immediately.

####

## ▸Switching Languages

You can switch languages in-game on-the-fly by typing **`!lang`** in chat.

![](https://3874596343-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdXI4KWDq_D_8oNZguN%2F-MTItqjFWH1uV9I9GOWG%2F-MTIuCLHjjkHfkg4WPvJ%2Flang.gif?alt=media\&token=12677f6f-479c-483a-8124-0e54223fa857)

{% 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 %}
