Pass the input options translation to the kcContext
This commit is contained in:
parent
2ef9828625
commit
2f0084de5b
@ -180,6 +180,16 @@ try {
|
|||||||
<#if attribute.annotations.inputTypePlaceholder??>
|
<#if attribute.annotations.inputTypePlaceholder??>
|
||||||
"${attribute.annotations.inputTypePlaceholder}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputTypePlaceholder)?js_string}"),
|
"${attribute.annotations.inputTypePlaceholder}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputTypePlaceholder)?js_string}"),
|
||||||
</#if>
|
</#if>
|
||||||
|
<!-- Loop through the options that are in attribute.validators.options.options -->
|
||||||
|
<#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}"),
|
||||||
|
</#list>
|
||||||
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
};
|
};
|
||||||
</#if>
|
</#if>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user