diff --git a/.github/actions/build_frontend/entrypoint.sh b/.github/actions/build_frontend/entrypoint.sh index ca9a9325..15e93a66 100644 --- a/.github/actions/build_frontend/entrypoint.sh +++ b/.github/actions/build_frontend/entrypoint.sh @@ -38,7 +38,7 @@ then if [ "$RUNNER_OS" = "macOS" ] then - brew uninstall packaging + brew uninstall python-packaging fi PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install -r requirements.txt diff --git a/Fronter.NET/Extensions/TranslationSource.cs b/Fronter.NET/Extensions/TranslationSource.cs index a6107a4d..2fc8cd5b 100644 --- a/Fronter.NET/Extensions/TranslationSource.cs +++ b/Fronter.NET/Extensions/TranslationSource.cs @@ -28,7 +28,7 @@ private TranslationSource() { cultureInfo = CultureInfo.GetCultureInfo(cultureName); } catch (CultureNotFoundException) { logger.Debug($"Culture {cultureName} for language {langKey} not found!"); - if (langKey == "english") { + if (string.Equals(langKey, "english", StringComparison.OrdinalIgnoreCase)) { cultureInfo = CultureInfo.InvariantCulture; } else { return; @@ -95,7 +95,7 @@ private void LoadLanguages() { var fileNames = SystemUtils.GetAllFilesInFolder("Configuration"); foreach (var fileName in fileNames) { - if (!fileName.EndsWith(".yml")) { + if (!fileName.EndsWith(".yml", StringComparison.OrdinalIgnoreCase)) { continue; } @@ -148,9 +148,9 @@ private void LoadLanguages() { } } - public IList LoadedLanguages { get; } = new List(); - private readonly Dictionary languages = new(); - private readonly Dictionary> translations = new(); // key, + public IList LoadedLanguages { get; } = []; + private readonly Dictionary languages = []; + private readonly Dictionary> translations = []; // key, private string currentLanguage = "english"; public string CurrentLanguage {