public void ChangeToDanish() { var currentLanguageIndex = _supportedLanguages.IndexOf(_language); _language = SystemLanguage.Danish; ResolveTexts(); PrefsHolder.SaveLang(_language); }
public void ChangeLanguage() { var currentLanguageIndex = _supportedLanguages.IndexOf(_language); _language = currentLanguageIndex == _supportedLanguages.Count - 1 ? _supportedLanguages.First() : _supportedLanguages[currentLanguageIndex + 1]; ResolveTexts(); PrefsHolder.SaveLang(_language); }
public void ChangeLanguage(string targetLanguage) { _language = targetLanguage; ResolveTexts(); PrefsHolder.SaveLang(_language); }