# How to change the dashboard UI language?

**URL:** <https://discourse.getcockpit.com/t/how-to-change-the-dashboard-ui-language/2599>\
**Category:** Uncategorized\
**Created:** [December 7, 2022, 3:29pm UTC](https://discourse.getcockpit.com/t/how-to-change-the-dashboard-ui-language/2599 "2022-12-07T15:29:51Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [February 7, 2023, 12:50pm UTC](https://discourse.getcockpit.com/t/how-to-change-the-dashboard-ui-language/2599/10 "2023-02-07T12:50:54Z")

</div>

> [@kotukkot](#):
>
> This array is empty. Therefore, the language files do not work.

This is no problem in PHP with `isset()`. It’s more a JS thing to check all parent properties.

> [@sgirard84](#):
>
> But this one never works, regardless of the context:  
> ‘Content’ =\> ‘Contenu’,
> 
> Most translations do not seem to work. Another example. This one is supposed to translate the “Hello” message on the dashboard, but I can’t see it (config\i18n\App\fr.php)  
> ‘Hello.’ =\> ‘Bonjour.’,

I just tested if with my Babel addon (latest version with OPCache invalidation after saving) and it works well on my local machine.

See also:

> [@Babel - GUI for translations of Cockpit CMS v1 and v2 modules](https://discourse.getcockpit.com/t/babel-gui-for-translations-of-cockpit-cms-v1-and-v2-modules/2608/8):
>
> I might have found the solution for your translations not showing up. At first I thought, “Content” wasn’t translated, because it is a module name. But I stumbled upon an OPCache issue in the Babel addon, where the updated language files didn’t show up properly after including them again. So I invalidate these files for OPCache now on save in the latest version 0.3.2. You can check, if OPCache is enabled, by going to “Settings” → “System info”, click “PHP” tab, scroll to bottom, see “OPCache E…

---

_[View the full topic](https://discourse.getcockpit.com/t/how-to-change-the-dashboard-ui-language/2599)._
