From 2f0084de5b8df5f9444b40aeced84ce1db1bf04b Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Tue, 11 Jun 2024 16:10:54 +0200 Subject: [PATCH] Pass the input options translation to the kcContext --- .../ftl_object_to_js_code_declaring_an_object.ftl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl b/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl index 909c13ee..3b4b4733 100644 --- a/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +++ b/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl @@ -180,6 +180,16 @@ try { <#if attribute.annotations.inputTypePlaceholder??> "${attribute.annotations.inputTypePlaceholder}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputTypePlaceholder)?js_string}"), + + <#if ( + attribute.annotations.inputOptionLabelsI18nPrefix?? && + attribute.validators?? && + attribute.validators.options?? + )> + <#list attribute.validators.options.options as option> + "${attribute.annotations.inputOptionLabelsI18nPrefix}.${option}": decodeHtmlEntities("${msg(attribute.annotations.inputOptionLabelsI18nPrefix + "." + option)?js_string}"), + + };