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>
- 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.