Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Adaptive Forms translation: Json vs sling:message

JoelLucuik
Level 3
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
Khushwant_Singh
Level 4
Level 4

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

JoelLucuik
Level 3
Level 3

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