Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Adaptive Forms translation: Json vs sling:message

Avatar

Level 3

Hi all,

When I go through the translation process for an adaptive form to translate to French(fr), I export my Translation Project/Translation Job. It gives me a zip file containing 2 xml files:

1. 16ab9dca-77a4-43c7-b4a6-6219142ef1bb.xml:Json with the french translation

{
  "fd_Form2Button": "fd_FormButtonInFrench"
}

2. 320750b6-351d-49f9-b062-c4500c1ff6db.xml: Properties from JCR (I believe this turns into sling:message):

<?xml version="1.0" encoding="UTF-8"?><translationObjectFile fileType="I18NDICTIONARY" sourcePath="/content/forms/af/joelsadaptiveform2/jcr:content/guideContainer/assets/fr.json">
  <translationObjectProperties>
    <property isMultiValue="false" nodePath="/content/forms/af/joelsadaptiveform2/jcr:content/guideContainer/assets/fr.json" propertyName="fd_Form2Button">fd_Form2Button</property>
  </translationObjectProperties>
</translationObjectFile>

I have found in my testing that the JSON doesn't need to be changed to get the Button's text to change to french.

What is the purpose of these 2 files? More specifically the JSON?

Thanks

Joel

4 Replies

Avatar

Employee

Hi Joel,

Kindly share the zip file and the process (detailed steps) you followed to obtain the zip. You can attach the zip file to the forum thread.

Regards
Khushwant Singh
Adobe Systems

Avatar

Level 3

Doc (See steps 1-3) attached. It won't let me attach the zip.