Skip to content

Commit

Permalink
Display locales names in their own locale
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Oct 30, 2023
1 parent 1320424 commit 41813cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean equals(Object other) {
}

public static ComboItem<String> fromLocale(Locale locale) {
return new ComboItem<>(locale.toLanguageTag(), StringUtils.capitalize(locale.getDisplayName()));
return new ComboItem<>(locale.toLanguageTag(), StringUtils.capitalize(locale.getDisplayName(locale)));
}

/**
Expand Down

0 comments on commit 41813cb

Please sign in to comment.