> For the complete documentation index, see [llms.txt](https://gamelauncher.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gamelauncher.gitbook.io/documentation/extending-the-launcher/adding-a-new-language.md).

# Adding a new language

{% hint style="success" %}
Applications required

* **Game Launcher PRO Edition**
* **Visual Studio Community (2022)**
  {% endhint %}

### Add a new language in the code

1. In **Visual Studio Solution Explorer**, open *<mark style="color:purple;">**Localization.cs**</mark>* under **GameLauncherCore** project

![](/files/KX0LUqJfyicXupqo122i)

{% hint style="info" %}
You can search for the ISOCode for your new language here: <https://www.andiamo.co.uk/resources/iso-language-codes/>
{% endhint %}

2. Duplicate the **SetLanguage\_EN\_US** function and change the name to your ISOCode

**Example:** *English (United Kingdom) | en-gb* \
We duplicated the ***SetLanguageEN\_US*** function and changed the name to ***SetLanguage\_EN\_GB***

<figure><img src="/files/2tDTtSSz4OLRGL1PoH89" alt=""><figcaption><p>Recently created SetLanguage function in <em>Localization.cs</em></p></figcaption></figure>

3. Now translate every string to your new language
4. In the **SetLanguage** function, add another **else if** using your language ISOCode.

<figure><img src="/files/ciJiAyjwzP9fKovCybEm" alt=""><figcaption><p>SetLanguage function in <em>Localization.cs</em></p></figcaption></figure>

5. In Views folder locate *<mark style="color:orange;">**SettingsWindow\.xaml.cs**</mark>* search for GetSelectedLanguageIndex and add your language ISOCods

<figure><img src="/files/jk0KVNNi01VjIalYfXya" alt=""><figcaption></figcaption></figure>

6. Duplicate the code from ***SetLanguage\_en\_US\_MouseDown*** function\
   And place a correct name to the function, and also change the string of the language.

<figure><img src="/files/P1OdNnofH5Bgqbum300w" alt=""><figcaption><p>Placing new correct values</p></figcaption></figure>

7. In *<mark style="color:orange;">**SettingsWindow\.xaml**</mark>* search for **comboBoxUILanguage** element and search for the items and add a new one for your language.\
   Remember to change the PreviewMouseDown refering to the above function.

<figure><img src="/files/uAzwPIfKvNDSBzlIWluH" alt=""><figcaption></figcaption></figure>

**That's all!**

**Now run your Launcher and change the language to the new one!**
