How to force a locale on an ignored page?

commented 5 months ago

Case: application has 2 languages (nl & en), default is 'nl'. prefix_except_default is used to generate routes (/ is 'nl', /en/ is 'en'). One route however should not be prefixed/multi language, it should only be available in 'en'.

Is it possible to force the locale for this one page to differ from the site default so all SEO and html attributes are correctly using the en-locale when visiting the page. Preferably without overriding the locale the visitor was using to browse the website (so all other links remain localized):

/* -> /blog: menu links aren't prefixed
/en/* -> /blog: menu links are prefixed with /en/

Question โ€ข Unresolved
#c189 - Created 5 months ago