Change default WebApp language in Camunda 7.19

Hi,

I have already asked where to find the German language files for the Camunda WebApps.

So I know, where to get the correct translation files.

But where do I have to store these files?

In C 7.18 and before, it was

${project.build.outputDirectory}/META-INF/resources/webjars/camunda/app/cockpit/locales/

Whe I store the files to this directoies (cockpit was replaced for admin, tasklist ect), I got the follwoing Message when I open the webapps:

Error in localization configuration : “de” is declared as available locale, but no such locale file exists.

Best regards,

Rainer

1 Like

I have the same problem only with a different language. Is there a solution? With tasklist it is possible to change the locale, with Cockpit and admin portals it is not.

Hi,
currently I am on vacation. When I am back at work (next year) I will check, how we solve the problem.

Best regards,
Rainer

Hello my friend @Ironarrow !

Is your translation file in Json format, de.json?
Remembering that for each of the webapps you will need to have a corresponding file to translate the webapp in question.

for example, to translate cockpit, you will need to have a translation file in the path: “META-INF > resources > webjars > camunda > app > cockpit > locales”.

So after having the file, inside the corresponding webapp folder, in this example we use the “cockpit” folder, you must place a configuration script, “config.js”, inside the “scripts” folder, with the following script below:

   'locales': {
     'availableLocales': ['de','en'],
     'fallbackLocale': 'de'
   },

Below I leave an example of the folder structure I have in one of my POC, notice that I have translation files for each of the webapps.

I hope this helps.

William Robert Alves