From 22f8677302e4781c7149b788d862849b56fb7725 Mon Sep 17 00:00:00 2001 From: Norbert Csaba Herczeg Date: Fri, 6 Dec 2024 18:51:15 +0100 Subject: [PATCH] JNG-6033 modeled features --- .../hu/blackbelt/judo/ui/generator/react/UiI18NHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiI18NHelper.java b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiI18NHelper.java index 60dcc885..4dc89b21 100644 --- a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiI18NHelper.java +++ b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiI18NHelper.java @@ -314,10 +314,10 @@ public static Map getApplicationTranslations(Application applica } }); - List inputsWithLabel = new ArrayList<>(); - collectVisualElementsMatchingCondition(container, (v) -> v instanceof Input input && input.getTooltipText() != null && !input.getTooltipText().isEmpty(), inputsWithLabel); + List inputsWithTooltips = new ArrayList<>(); + collectVisualElementsMatchingCondition(container, (v) -> v instanceof Input input && input.getTooltipText() != null && !input.getTooltipText().isEmpty(), inputsWithTooltips); - inputsWithLabel.forEach(i -> { + inputsWithTooltips.forEach(i -> { translations.put(getTranslationKeyForVisualElement(i) + ".tooltip", ((Input) i).getTooltipText()); });