Skip to content

Commit adab386

Browse files
elPeirettijavier-godoy
authored andcommitted
fix: use locale for displayName in getLocaleRendererWithoutFlags
1 parent c193fbb commit adab386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private LitRenderer<Locale> getLocaleRendererWithoutFlags() {
173173
<vaadin-horizontal-layout class="${item.layoutClass}">
174174
<span>${item.displayName}</span>
175175
</vaadin-horizontal-layout>""").withProperty("layoutClass", loc -> ITEM_LAYOUT_CLASS_NAME)
176-
.withProperty("displayName", loc -> loc.getDisplayName());
176+
.withProperty("displayName", loc -> loc.getDisplayName(getLocaleForDisplay()));
177177
}
178178

179179
private Locale getLocaleForDisplay() {

0 commit comments

Comments
 (0)