From adab3865ee781559dc53a030ad909884c0f7c132 Mon Sep 17 00:00:00 2001 From: Tomas Peiretti Date: Thu, 22 Aug 2024 09:37:30 -0300 Subject: [PATCH] fix: use locale for displayName in getLocaleRendererWithoutFlags --- .../vaadin/addons/localecombobox/LocaleComboBox.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java index 8cdb717..4b54aa8 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java +++ b/src/main/java/com/flowingcode/vaadin/addons/localecombobox/LocaleComboBox.java @@ -173,7 +173,7 @@ private LitRenderer getLocaleRendererWithoutFlags() { ${item.displayName} """).withProperty("layoutClass", loc -> ITEM_LAYOUT_CLASS_NAME) - .withProperty("displayName", loc -> loc.getDisplayName()); + .withProperty("displayName", loc -> loc.getDisplayName(getLocaleForDisplay())); } private Locale getLocaleForDisplay() {