View Localization with Razor Pages

Viewed 109

We can localize Razor Pages by injecting the IViewLocalizer. This is very helpful, but for Razor Pages with a lot of content I would like to create location dependent Razor Pages like Index.de.cshtml or Index.en.cshtml. This is possible for views as described in the docs with builder.Services.AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix). Is there a similar way for Razor Pages?

0 Answers
Related