London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Daman,
If you for example look at Episerver Alloy sample site implementation and the _Root.cshtml layout file you can see that current language for html lang attribute is rendered using Model.CurrentPage.Language.TwoLetterISOLanguageName.
So on your view page you can use this same approach or other properties from the Language (CultureInfo object) to decide changes in the view per language.
How do I figure out on a view page (Razor code) what language is being used so as to render the view slightly different for international?