Skip to content

Commit

Permalink
fix: use locale for displayName in getLocaleRendererWithoutFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
elPeiretti authored and javier-godoy committed Sep 5, 2024
1 parent c193fbb commit adab386
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private LitRenderer<Locale> getLocaleRendererWithoutFlags() {
<vaadin-horizontal-layout class="${item.layoutClass}">
<span>${item.displayName}</span>
</vaadin-horizontal-layout>""").withProperty("layoutClass", loc -> ITEM_LAYOUT_CLASS_NAME)
.withProperty("displayName", loc -> loc.getDisplayName());
.withProperty("displayName", loc -> loc.getDisplayName(getLocaleForDisplay()));
}

private Locale getLocaleForDisplay() {
Expand Down

0 comments on commit adab386

Please sign in to comment.