Hi, when you create a language copy for a site, through a translations project, all the links to pages to the same site are translated to the new language copy site.
For example:
my original site is: /content/my-site/en/...
and my new language copy is: /content/my-site/es/...
so, all the links to other pages inside /content/my-site/es/... will be translated from /content/my-site/en/... to /content/my-site/es/...
My question is: How can I do an automatic translation of the links to experience fragments?
in my pages inside /content/my-site/en/... I have links to /content/experience-fragments/my-site/en/...
in my pages inside /content/my-site/es/... I still have links to /content/experience-fragments/my-site/en/... instead of links to /content/experience-fragments/my-site/es/...
Solved! Go to Solution.
Views
Replies
Total Likes
This issue is resolved in the AEM 6.5 Service Pack 12.
Before the fix, I wrote Sling Transformer to achieve the same.
The team wants to know --
FYI we are using human translation.
Hi Matiasv916,
How did you solve this issue then? Could you please provide the resolution in details?
Thanks!
Mayank
Not sure if this is possible with config.
Though you can add one more process step to WCM: Translate Language Copy workflow to translated experience fragment links.
This issue is resolved in the AEM 6.5 Service Pack 12.
Before the fix, I wrote Sling Transformer to achieve the same.
You can create a custom Experience fragment renderer that is able to read the language node of a content tree and re-adjust references at run time.
We had a similar situation with Live copy rollouts where the XF references from language master page were not getting replaced with the XF country variation on roll out. In that case we created a custom rollout config that was able to update the link references at run time during rollout.
The below blog does something similar to what I mentioned for XF rollouts.
https://bimmisoi.blogspot.com/2021/07/update-link-reference-inside-experience.html
I am not using MSM but creating language copies. Sling Transformer worked well for me. However, as mentioned, the issue is fixed in AEM 6.5 Service Pack 12 as part of the translation rules.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies