I have my own implementation of Razor view engine that allows me to process partial views and views "feeding" so that I serve a localized versions of my views to the client.
I use protected override IView CreateView
to override view selection process and inject language aware logic.
I also have protected override IView CreatePartialView
but when I load a view that suppose to render my _Layout.cshtml
CreatePartialView doesn't get firred up.
Which method of a ViewEngine I need to override to "catch" the _layout page rendering to perform a language-aware substitution?