I want to change the website language based on the geo ip data based on this article: https://ggullentops.blogspot.com/2018/05/sitecore-context-language-geo-ip-location.html
I added my custom language processor like this and add necessarily code to get the country and set a new context language:
<startAnalytics>
<processor patch:after="*[@type='Sitecore.Analytics.Pipelines.StartAnalytics.StartTracking, Sitecore.Analytics']" type="your-language-resolver, .." />
</startAnalytics>
Issues:
- If my custom processor derives from RenderLayoutProcessor then the code isn't executed.
- If I don't derives then code is executed but Sitecore.Context.Language still not changed when open the website.
I'm not able to figure which is the best place to change the language and also have Tracker information about country available.
renderLayout
is now for aspx pages only. Better check "mvc.render..." pipelines – Marek Musielak Jan 13 '20 at 14:04