Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Trouble using i18n for having multiple languages for AEM Form On-prem

Avatar

Level 2

Im trying to enable translations for a form but I cant seem to "activate it".

I have been following this guide:

https://medium.com/@45pallavi.singh/aem-support-multilingual-adaptive-form-755f07be2889

With the difference of:

  • Having swedish (sv) instead of french (fr)
  • Using Human Translation instead of Machine Translation.

Then i have tried to implement i18n to get custom translations.

So I have:

  • Added the files

    • /apps/i18n/cmmwf/en.translation.json
    • /apps/i18n/cmmwf/sv.translation.json (Content below)

    { "firstName.label": "Förnamn", "firstName.help": "Fyll i ditt förnamn", "firstName.error": "Förnamn krävs" }

  • Changed the value of the field of Title to ${i18n.firstName.label} 

     

But when i go to the form in preview using the parameter "?afAcceptLang=sv" i just see the plain text "${i18n.firstName.label}"

(Url https://Address/editor.html/content/forms/af/Folder-name/forms/Form-name.preview.html?afAcceptLang=sv)


Additional stuff i have tried that gave no change.

  • Have the title be firstName.label
  • Added the property "dictionaryPath - String - /apps/i18n/ to /content/forms/af/cmmwf/forms/requests-when-you-work-at-a-public-authority/jcr:content/guideContainer as well to /content/forms/af/cmmwf/forms/requests-when-you-work-at-a-public-authority/jcr:content
  • When i go to the preview page and open the network dev tools, i dont see any mention of i18 (not 100% sure if i should)

TL:DR

My label on a AEM Form is not getting the value of i18n when i use, ${i18n.key}. What do i do?

Any help appreciated

3 Replies

Avatar

Moderator

@fprogrammer , Which forms are you using Foundation Components based forms or Core Components based forms?

Avatar

Level 2

@Khushwant_Singh I am using Adaptive Forms, which are not based on Foundation Components or Core Components.

Avatar

Employee

Hi @fprogrammer ,

Kindly refer doc [0] to achieve your use case, reach back if any issue faced

 

[0]

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/manage-administer-aem...