Is there a way to use a an i18n key for an extension point's config field label?
I was expecting to find an @LabelKey
annotation available, but that doesn't exist.
I've tried using the @TitleKey
, but that doesn't seem to do anything for the ExtensionPointResourceForm
UI. My category + description keys are working as expected.
data class SnmpNetworkConfig(
@FormCategoryKey("Snmp.config.Network")
@TitleKey("Snmp.config.Network.Hostname.Name")
@DescriptionKey("Snmp.config.Network.Hostname.Description")
@FormField(FormFieldType.TEXT)
@Required
val hostname: String,
@FormCategoryKey("Snmp.config.Network")
@TitleKey("Snmp.config.Network.Port.Name")
@DescriptionKey("Snmp.config.Network.Port.Description")
@DefaultValue("161")
@FormField(FormFieldType.NUMBER)
@Required
val port: Int,
)
P.S. This is my actual code