TIM.Translator
  • ⬇️Installation
  • ❔About
  • Guides
    • 🔖Change the language in Editor
    • 🏷️Text Translatable
    • ⛓️Complex Text Translatable
    • #️⃣C# code
      • #️⃣String Translatable
      • #️⃣Complex String Translatable
      • #️⃣Change the language
  • Projects with translator
    • 1️Gamedev Life Simulator
    • 2️21st UNIVERSE
Powered by GitBook
On this page
  1. Guides
  2. C# code

Change the language

If you want to change the language of the game you can do it this way:

public void Main()
{
    Translator.Instance.CurrentLanguage = Language.Turkish;
}

Language enum:

public enum Language
{
    English,
    Russian,
    SimplifiedChinese,
    Spanish,
    Portuguese,
    German,
    Japanese,
    French,
    Polish,
    Turkish
}
PreviousComplex String TranslatableNextGamedev Life Simulator

Last updated 2 years ago

#️⃣
#️⃣