Language fields

New in version 11.2: The TCA field type called language has been added to TYPO3 Core.

This field type displays all languages available in the current site context. Outside of the site context it displays all languages available in the installation.

A special language All languages is automatically added.

'columns' => [
    'sys_language_uid' => [
        'exclude' => true,
        'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
        'config' => [
            'type' => 'language',
        ],
    ],
]