This commit is contained in:
Isaac Marovitz 2024-02-10 12:19:49 -05:00
parent 8582a5eb7c
commit 230509be28
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -32,17 +32,8 @@ namespace Ryujinx.Ava.Common.Locale
public void Load()
{
// Load the system Language Code.
string localeLanguageCode = CultureInfo.CurrentCulture.Name.Replace('-', '_');
if (!string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value))
{
localeLanguageCode = ConfigurationState.Instance.Ui.LanguageCode.Value;
}
else
{
localeLanguageCode = DefaultLanguageCode;
}
string localeLanguageCode = string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value) ?
DefaultLanguageCode : ConfigurationState.Instance.Ui.LanguageCode.Value;
// Load en_US as default, if the target language translation is incomplete.
LoadDefaultLanguage();