i18n translation via config.yaml

Hello,
wanted to ask if you could also make i18n adjustments via config.yaml without editing the PHP file?

That’s not possible.

Well, actually it is possible if you create a language file that returns the config data. But why do you need it that way? Just use language files and keep your config file clean.

But hey - it is possible: Create a language file in config/i18n/cockpit/de.php

<?php

return $this->app['i18n_strings'] ?? [];

and add your i18n strings to config/config.yaml. Be careful with unquoted strings if you use colons etc.

i18n_strings:
    "Collections": "Kollektionen"
    "Settings": "Einstellungen"
    "Language": "Sprache"
    "Search for anything...": "Suche nach irgendetwas..."