Issue Feature Closed

#106640Site settings definition: Allow localization of enum labels

Uwe Wiebach 04/30/25, 11:34 updated 03/07/26, 23:03

Description

It is possible to localize labels in site settings definitions, but not the labels of an enum. They are always treated as a string…

I would like to see that something like this is possible:

setting.option:
  # localized setting label - works already
  label: 'LLL:EXT:example/Resources/Private/Language/locallang.xlf:setting.option'
  category: Category
  type: string
  enum:
    option1: 'LLL:EXT:example/Resources/Private/Language/locallang.xlf:setting.option.1' # localized enum label - does not work!
    option2: 'LLL:EXT:example/Resources/Private/Language/locallang.xlf:setting.option.2'
  default: 'option2'

Reviews 1