# i18n translation via config.yaml

**URL:** <https://discourse.getcockpit.com/t/i18n-translation-via-config-yaml/718>\
**Category:** Support\
**Created:** [April 5, 2019, 11:01am UTC](https://discourse.getcockpit.com/t/i18n-translation-via-config-yaml/718 "2019-04-05T11:01:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lammpee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/lammpee/32/338_2.png) [@lammpee](https://discourse.getcockpit.com/u/lammpee)\
**Post date:** [April 5, 2019, 11:01am UTC](https://discourse.getcockpit.com/t/i18n-translation-via-config-yaml/718/1 "2019-04-05T11:01:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [April 5, 2019, 7:11pm UTC](https://discourse.getcockpit.com/t/i18n-translation-via-config-yaml/718/2 "2019-04-05T19:11:08Z")

</div>

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
<?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.

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

```
