Ejemplo n.º 1
0
    public void ChangeToDanish()
    {
        var currentLanguageIndex = _supportedLanguages.IndexOf(_language);

        _language = SystemLanguage.Danish;

        ResolveTexts();
        PrefsHolder.SaveLang(_language);
    }
Ejemplo n.º 2
0
    public void ChangeLanguage()
    {
        var currentLanguageIndex = _supportedLanguages.IndexOf(_language);

        _language = currentLanguageIndex ==
                    _supportedLanguages.Count - 1
            ? _supportedLanguages.First()
            : _supportedLanguages[currentLanguageIndex + 1];

        ResolveTexts();
        PrefsHolder.SaveLang(_language);
    }
Ejemplo n.º 3
0
 public void ChangeLanguage(string targetLanguage)
 {
     _language = targetLanguage;
     ResolveTexts();
     PrefsHolder.SaveLang(_language);
 }