Injecting Locale
To override the default locale detection methods, you will need to implement a middleware
with the OnTemplateRendering method and inject your locale string into the Locale
property of the template ViewModel.
This is currently the only supported method.