> 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!**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gamelauncher.gitbook.io/documentation/extending-the-launcher/adding-a-new-language.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
