Hi is it possible to pass domain in translation file pattern so that it could find the file without declaring every domain in the config
For example , currently every domain need to have it’s own config since it lock the base_dir and text_domain
Can the domain be dynamic like the pattern key
<?php
return [
'translator' => [
'locale' => [
'en_US',
],
'translation_file_patterns' => [
[
'type' => Laminas\I18n\Translator\Loader\PhpArray::class,
'base_dir' => __DIR__ . '/../lang/default',
'pattern' => '%s.php',
'text_domain' => 'default'
],
[
'type' => Laminas\I18n\Translator\Loader\PhpArray::class,
'base_dir' => __DIR__ . '/../lang/db',
'pattern' => '%s.php',
'text_domain' => 'db'
],
[
'type' => Laminas\I18n\Translator\Loader\PhpArray::class,
'base_dir' => __DIR__ . '/../lang/project',
'pattern' => '%s.php',
'text_domain' => 'project'
],
[
'type' => Laminas\I18n\Translator\Loader\PhpArray::class,
'base_dir' => __DIR__ . '/../lang/media',
'pattern' => '%s.php',
'text_domain' => 'media'
],
],
]
];