Translation - Nuxeo looking for the wrong files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 10:45 AM
Hello,
Nuxeo apparently looks for the wrong translations files. When looking at the development tools in chrome I can see the following Log :
nuxeo-app.html-52.js:74 GET http://localhost:8080/nuxeo/ui/i18n/messages-de-DE.json 404
loadLang @ nuxeo-app.html-52.js:74
(anonymous) @ nuxeo-app.html-52.js:78
(anonymous) @ nuxeo-app.html-52.js:49
window.nuxeo.I18n.loadLocale @ nuxeo-app.html-52.js:39
(anonymous) @ nuxeo-app.html-198.js:7
(anonymous) @ nuxeo-app.html-198.js:11
Could not find locale "de-DE". Defaulting to "en".
As you can see, Nuxeo looks for messages-de-DE.json, but when referring to the documentation and looking at my deployment, the correct file would be messages-de.json I am not sure about other languages.
Any ideas how to fix this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 10:54 AM
Hello,
The locale depends on your browser settings , and your favorite language. Like in french, we have fr
, fr-fr
, fr-be
etc. So this is not a Nuxeo configuration at the end, Nuxeo Web UI is just retrieving the locale, then try to load the translation file if it exists. So, in your context, create another translation file called messages-de.json
and it will work.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 10:58 AM
Hello, thanks for the swift response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2021 11:00 AM
Your feedback perfectly makes sense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 03:54 AM
Thank you for picking it up, please keep me updated on this
