This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
[Localization]: Fix ViewLocalizer so it works for layouts too #2767
Closed
Description
ViewLocalizer
cannot be used on layout pages since the logic in Contextualize
method reads current view to get the resources file. Since ViewContext.View
property does not point to layout, layout specific resources are not localized. Today we have to use IStringLocalizer
for this scenario.
We should come up with a solution where ViewLocalizer
works for layouts too.