Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Content fragment model on translation

Avatar

Level 3

Hi everyone. 

I'm facing an issue with translation for the content fragment model.

For example:

I have a content fragment model A with a dropdown with 5 options:

luongpham1994_0-1672978747944.png

In the JSON i18n dictionary file, I also have some values as the same value in the option in the content fragment.

luongpham1994_1-1672978867837.png

The problem is when opening the content fragment model in author mode, The value of the options will be translated to the value according to the JSON i18n file.

I noticed that It only happens in the new version of AEM (aem-sdk-2022.10.9398.20221020T071514Z-220900)

luongpham1994_2-1672979268509.png

 

but in aem-sdk-2022.1.6228.20220123T154100Z-220100 it doesn't.

luongpham1994_3-1672979312101.png

 

Do you guys have any idea about that? How can I ignore the translation on the content fragment model?

Thank you!

 

2 Replies

Avatar

Employee Advisor

@luongpham1994 Do you have any custom logic in play where in Content Fragment Models will pick i18n translated value for the manually entered options in a DropDown(Enumeration Field)?

 

The Option Field Label and Value is only manually editable as an OOTB functionality, this is not dynamic in nature, until a custom logic has been added.

 

If you have not added any custom logic, try to change the i18n values to something else, and you will be able to verify that new i18n value will not reflect on the Dropdown list

Avatar

Level 3

I've tried to change the i18n value, and the value of content fragment dropdown is no longer translated, But I need this value to translate my content in a page. Do you know any way to turn off the dynamic translation for content fragment, I don't have any custom logic for that and It only happens in the new version of AEM SDK. I tried in the older version and it dosen't.