From 230509be28f502ce0b3b53cf03cb32a717abc91f Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 10 Feb 2024 12:19:49 -0500 Subject: [PATCH] Style --- src/Ryujinx.Ava/Common/Locale/LocaleManager.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs b/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs index 4f48aaa59..c02b87cfe 100644 --- a/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs +++ b/src/Ryujinx.Ava/Common/Locale/LocaleManager.cs @@ -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();