# Multi Language dont work

**URL:** <https://discourse.getcockpit.com/t/multi-language-dont-work/3074>\
**Category:** Support\
**Created:** [October 23, 2024, 10:33pm UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074 "2024-10-23T22:33:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://discourse.getcockpit.com/u/Martin)\
**Post date:** [October 23, 2024, 10:33pm UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074/1 "2024-10-23T22:33:49Z")

</div>

Hi to all Cockpit users,  
I have the task of adding different localizations to the website (Cockpit version 2), but I am unable to output the language field to the URL (/page/getSingleton?name=Career&locale=en), even though I believe I’m doing everything correctly.

 ![Screenshot_262](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/b/be9fa3aff9f63be08135bd7e5846ff52c7b3cfd2.png)

 ![Screenshot_261](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/6/673bb348df29912e3b30028cca0e02f5de30ac98.png)

 ![Screenshot_264](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/c/c7d2873337aa27bf98388c88a154fbcac7e0c277.png)

In the admin, I have added the language and enabled it for the singleton field, but the field doesn’t display in the output.

 ![Screenshot_265](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/c/c63f17e3f65a6c39f37028ab00c557b8487cf4d8.png)

I also tried editing the `config.php` file with the following entry:

return [  
‘languages’ =\> [  
‘default’ =\> ‘Czech’, #setting a default language is optional  
‘en’ =\> ‘English’  
]  
];

Can anyone advise me on what I might be doing wrong?  
Many thanks to everyone!

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [October 26, 2024, 11:52am UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074/2 "2024-10-26T11:52:35Z")

</div>

what are the locale settings for en? Can you provide a screenshot of the locale settings for en?

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://discourse.getcockpit.com/u/Martin)\
**Post date:** [October 26, 2024, 9:26pm UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074/3 "2024-10-26T21:26:08Z")

</div>

Hi arthur, thank you very much for your response. After your question I came to the solution. We must be correctly added languages ​​in locale settings and mirror defined in the config.php file. I am adding the prnscr, but no advice is needed. The thread will hopefully help someone who will configure languages.

 ![Snímek obrazovky 2024-10-26 v 23.19.49](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/9/9dc55ed81355568d68fe6c6d0b01913feb1eb41f.png)

Thank you Artur.

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [October 26, 2024, 10:48pm UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074/4 "2024-10-26T22:48:40Z")

</div>

`i18n` needs to be `en` and `name` should be `English`

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://discourse.getcockpit.com/u/Martin)\
**Post date:** [November 30, 2024, 12:16am UTC](https://discourse.getcockpit.com/t/multi-language-dont-work/3074/5 "2024-11-30T00:16:33Z")

</div>

I still need help with another issue I can’t figure out. I followed the instructions provided earlier in this thread.

However, data from other locations only update (display the second language in the API data) when I either set the locale for the localization to “Disabled” or completely delete the language from the locale. Until then, the data for the set localization does not appear in the API—even though I can see the localization in the singleton and the JSON Viewer.

Below, I’m sharing the Prncs settings and the API output. Does anyone know what could be causing this?

 ![Screenshot_355](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/c/c0355dfeb9b9213c48c155b4c4448cb413799cdb.png)  
 ![Screenshot_354](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/2/2d00525b1a094a96e35ac7799bea5543e5daee26.png)  
 ![Screenshot_353](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/6/6a68c9ad0bf49fd54357ff2eb92df67dce11f8b6.png)  
 ![Screenshot_352](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/4/4deb4919a936322700dd795126842af0ca80e67d.png)  
 ![Screenshot_351](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/f/f30cca2a180d1258610bdb6f615091529d4d4e2f.png)
