Example #1
0
        private void SetLanguage(LangCode langCode)
        {
            if (CurrentLanguage == langCode)
            {
                return;
            }

            CurrentLanguage = langCode;
            EditorPrefs.SetInt(LocalizationKey, (int)CurrentLanguage);
            _localizations.Clear();

            L10n.LoadLanguage(CurrentLanguage);
            _localizations = L10n.CurrentLanguage.GetValues();
        }
Example #2
0
 public void SetFinnish()
 {
     L10n.LoadLanguage(LangCode.FI);
 }
Example #3
0
 public void SetEnglish()
 {
     L10n.LoadLanguage(LangCode.EN);
 }