🇺🇸

Adding a new language

You can add a new language to your launcher [PRO version only]
Applications required
  • Game Launcher PRO Version
  • Visual Studio Community (2022)
In Visual Studio Solution Explorer, open Localization.cs under GameLauncherCore project
​
​

Add a new language in the code

You can search for the ISOCode for your new language here: https://www.andiamo.co.uk/resources/iso-language-codes/​
Example: English (United Kingdom) | en-gb
  1. 1.
    Duplicate the SetLanguage_EN_US function and change the name to your ISOCode
Example: We duplicated the SetLanguageEN_US function and change the name to SetLanguage_EN_GB
Recently created SetLanguage function in Localization.cs
  1. 2.
    Now translate every string to your new language
  2. 3.
    In the SetLanguage function, add another else if using your language ISOCode.
SetLanguage function in Localization.cs
  1. 4.
    In MainWindow.xaml.cs search for comboBox_UILanguage_SelectionChanged and add your language ISOCode in the switch case
comboBox_UILanguage_SelectionChanged() function in MainWindow.xaml.cs
  1. 5.
    In MainWindow.xaml.cs search for NEWS AND LANGUAGES (line ~78) and add new variables for Release and Beta environments
News and Languages in MainWindow.xaml.cs
  1. 6.
    In MainWindow.xaml.cs search for InitializeLauncher function and add new variables for Release and Beta environments
InitializeLauncher() function in MainWindow.xaml.cs
  1. 8.
    In MainWindow.xaml.cs search for FetchNews() function and add new variables for Release and Beta environments
FetchNews() function in MainWindow.xaml.cs
  1. 8.
    In MainWindow.xaml search for comboBoxUILanguage element and search for the items and add a new one for your language
comboBoxUILanguage element Items in MainWindow.xaml
That's all!
Now run your Launcher and change the language to the new one!