Issue Feature Closed

#107840Enhance language:domain:list command to support filtering and content search

Lina Wolf 10/26/25, 09:16 updated 12/02/25, 12:04

Description

With changes like https://forge.typo3.org/issues/107810 language files will be renamed and moved.

So in my opinion it would be very helpful to be able to search for all language files for the key or text, possibly containing wildcards.

Add a —search <string> option to search for an exact string (case-insensitive) in label keys or default-language text.<br>Add a —regex <pattern> option to use regular expressions for flexible matching.<br>The existing —extension <name> option can be used together with these filters to limit results to a specific extension.</name></pattern></string>

These would be my scenarios:


bin/typo3 language:domain:list --search "Access"

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

frontend.tca => EXT:core/Resources/Private/Language/locallang_general.xlf

    - pages.tabs.access => "Access"
    - fe_users.tabs.access => "Access"
    - sys_template.tabs.access => "Access"

...

bin/typo3 language:domain:list --search "tabs.access"

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

bin/typo3 language:domain:list --regex ".*access.*" -extension core

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

core.file_messages  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - FileUtility.CouldNotAccessAllNecessaryResources => "Could not access all necessary resources. Source file or destination maybe was not within your mountpoints? T="%s", D="%s""

...

While experienced developers can use the power of their IDEs or consoles to search for such strings in the XLF files the same is much harder for integrators or new developers.

Reviews 2