Replies: 1 comment
-
We very specifically say, "If you spec a locale, you are opting out of localizing a link." This is either same-locale or different locale. Taking a non-US locale and treating it as a source of truth to make copies of other docs in different locales would also be considered an anti-pattern. You start to create a lot of overhead to support In this light, I would opt to not add complexity in our code for these types of, "what ifs" if we have firm rules and guidance already in place. If it truly becomes a pain point for actual authors, I would then revisit. I don't want to minimize that there's knowledge and KT involved in how this works, but I think it is the lesser of evils to provide predictability and less code maintenance than to start trying to solve every different permutation of how content could be created. |
Beta Was this translation helpful? Give feedback.
-
The fragment feature automatically localizes fragments to the page's geo. If an author wants to prevent this, they can add #_dnt to the end of their fragment reference.
Here is an example page: https://main--milo--adobecom.hlx.page/de/drafts/vgoodrich/fragments/localize-fragments/
and it's source file: https://adobe.sharepoint.com/:w:/r/sites/adobecom/_layouts/15/Doc.aspx?sourcedoc=%7BC57F3C6E-AA7E-4E71-9F9D-3049A52E264C%7D&file=index.docx&action=default&mobileredirect=true
Notice that the first marquee uses the DE version but the second marquee uses the US version. The fourth marquee also uses the US version as you would expect.
What I'm wondering about is the third marquee. No #_dnt is used, and yet the fragment does not localize because it's not referencing a US fragment.
This topic came up because we had someone building fragments for 6 EMEA regions (but not US). They started with a UK fragment and then copied it into the other 5 geos. But the fragment used the UK fragment in all geos until they updated the link to a non-existent US version of the fragment.
So my question is, is that what we want?
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions