“formAlreadySubmitted” and “datatypeMessage” messages not translated from English
This article talks about the AEM issue where an error message is not internationalized to the intended audience’s language. This known issue was fixed in AEM 6.5 Service Pack 16.
Description description
Environment
Adobe Experience Manager (AEM)
Issue
The issue is that the error message: Invalid date - The value must be of date datatype is in English even if it should be in German (the user’s browser language in this instance).
On checking the German clientlib: /libs/fd/af/runtime/clientlibs/I18N/de/javascript/LogMessages.js
we see that the message is in English, and further has a placeholder {0} which means that part of the message is dynamic.
On checking the function which replaces the placeholder (EnglishMessage03.JPG
), we can see that the value “date” is hardcoded and in English, making it hardly translatable.
Steps to reproduce:
- Check German or any other language except English clientlib:
/libs/fd/af/runtime/clientlibs/I18N/de/javascript/LogMessages.js
- See that “formAlreadySubmitted” and “datatypeMessage” messages are in English.
Expected Behavior:
The messages should be translated into the proper language.
Experienced Behavior:
The messages are in English.
Environment Details:
- Affected versions: AEM 6.5.12
- Tested versions: AEM 6.5.12
Resolution resolution
This known issue was fixed in AEM 6.5 Service Pack 16.