You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a popup with suggested redirection if ending on the wrong site (i.e. UK on petplace.com is asked if they want to go to petplace.co.uk, non-UK on petplace.com/en-gb/ is asked if they want to go to petplace.com)
Re-use the existing popup block
Popup should show 1 + n buttons, 1 for the current region (i.e. "Stay on …"), and then 1 for each other region available (only 1 for now, but should plan for an array down the road)
…nguage support (#365)
As part of #364, we need to extract all hardcoded strings so they can be
localized as needed. We also remove all the testing logic at the same
time since this isn't used anymore so we have a cleaner baseline for
future regional sites.
For this, a new `/placeholders.xslx` sheet has been added to Sharepoint,
and the site now pulls the static strings from there. We'll be able to
transparently replace the `placeholders.xslx` sheet for each locale down
the road so we have properly localized strings across the website.
We also introduce a new `getPlaceholder(key, options)` method in the
`scripts.js` so we can easily pull strings and quickly inject variables
in them (uses a `{{variableName}}` syntax)
Test URLs:
- Before: https://main--petplace--hlxsites.hlx.page/
- After:
- https://placeholders--petplace--hlxsites.hlx.live/
- https://placeholders--petplace--hlxsites.hlx.live/?martech=off
Use case
The customer wants to start a new website for the UK market based on their existing www.petplace.com.
The localized version should:
/en-gb/
folder in Sharepointhave separated martech stack(deferred)🚧 Technical
As part of this initiative, we'll cover:
🧑💻 Tasks
🧱 Header/footer and common fragments
/fragments
folderwindow.hlx.contentBasePath
and set it to the active localefeat: support loading localized fragments #371
header
block to use thecontentBasePath
in the URL when fetchingnav.docx
andsidenav.docx
footer
block to use thecontentBasePath
in the URL when fetchingfooter.docx
popular-articles
block to use thecontentBasePath
in the URL when fetchingpopular-posts.docx
popular-tags
block to use thecontentBasePath
in the URL when fetchingpopular-tags.docx
article-signup
template andscripts.js
to use thecontentBasePath
in the URL when fetchingnewsletter-footer.docx
andnewsletter-popup.docx
searchresults
template to use the locale in the URL when fetching404.docx
placeholders.xslx
refactor: use placeholders for static strings to prepare for multi-language support #365
placeholders.xslx
sheet in each locale to handle hardcoded strings that need to be translated.contentBasePath
)searchresults
template and the404.docx
fragment, but page metadata need to be updatedfeat: properly localize the 404 page including meta tags #372
contentBasePath
in thenewsletter
blocksfeat: properly localize author pages #374
article-author
template to use thecontentbasePath
📰 Articles
article/query-index.xslx
for each localehelix-query.yaml
to include the new article indexes📊 SEO
feat: properly localize the sitemaps #373
/query-index.xslx
for each localehelix-query.yaml
to include the new sitemap indexeshelix-sitemap.yaml
to list the sitemaps for each geo. See: https://www.aem.live/developer/sitemap#multiple-sitemapsAdd proper meta links(likely redundant with sitemap changes, see: https://developers.google.com/search/docs/specialty/international/localized-versions):🤖 CI for search & XML feeds
.github/ci/build-search-index.js
.github/ci/generate-news-feed.js
head.html
to reference the feeds with the right locale📝 Content Migration
petplace.com_-_post-migration_optimizations_and_additions.xlsx
💰 Martech
📝 Authoring
🌐 Infra
#395
x-served-by
headers to detect the Fastly pop locationIntroduce geo service to detect where user is coming from: https://git.corp.adobe.com/experience-platform/franklin-delivery-cdn/issues/138🚀 Go-live
The text was updated successfully, but these errors were encountered: