Skip to content

Commit

Permalink
Locale Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Konloch committed Dec 18, 2023
1 parent 141ea98 commit 8bfeef3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ public static File getLastPluginDirectory()

public static Language guessBestLanguage()
{
Locale systemLocale = Locale.getDefault();
String systemLanguage = systemLocale.getLanguage();

Language language = Language.getLanguageCodeLookup().get(systemLanguage);
Language language = Language.getLanguageCodeLookup().get(Locale.getDefault().getLanguage());

if(language != null)
return language;
Expand Down

0 comments on commit 8bfeef3

Please sign in to comment.