Replies: 1 comment
-
I 100% agree that Milo itself shouldn't have opinionated consumer logic. We had the same approach when defining the prod to stage link transformation, we chose to make Milo itself oblivious to such details and instead ask consumers to provide a map. From what you're describing, it sounds like different domains have different mappings, right? So your suggested approach would be domain-specific, although locales are site-specific, which is a no-go. Otherwise you could have inferred the language directly from the So you'd likely have to define this map on the consumer side, either in your scripts or as a completely different module. You should check the effect on the bloated scripts file for pages that don't need this map vs importing a new module for pages that do. I'm not sure an event approach would work OOTB; the flow I'd think occurs is: section starts being decorated, including link localization, so |
Beta Was this translation helpful? Give feedback.
-
We have a request in CC to localize creativecloud.adobe.com links authored on CC Milo pages in adobe.com
creativecloud.adobe.com is a language based site. However our current link localization localizes the link by appending locale.prefix which is geo based.
So for example when localizing https://creativecloud.adobe.com/discover to Japanese it converts it to https://creativecloud.adobe.com/jp/discover instead of correct url https://creativecloud.adobe.com/ja/discover
Discussed this with @auniverseaway and he had following suggestions/considerations
I also tried below approach:
Challenge with above approach is that not all language based sites are not following same language code format. For example blog.adobe.com has APAC (English), US (Englis), UK (English). However creativecloud.adobe.com only has English.
So I feel we'll need to do locale and language mapping for each domain.
I'll appreciate community input also to finalize the approach and best place to create the mapping file to pass in config.
Looking forward for feedback. Thanks in advance.
cc @dstrong23 @overmyheadandbody @narcis-radu @mokimo @rgclayton @chrischrischris
Beta Was this translation helpful? Give feedback.
All reactions