How to add culture name as class in body tag
I am trying to add culture name as class in body tag like example <body class="ar-AE" />. Any one has example how to implement it in sitefinity 4.2?
Hello Renatas,
Can you please let us know of the exact use case scenario that you need to implement, so we can give you a more specific advice? Generally the easiest way to get the name of the current culture, and dynamically assign a class with its name, would be to use CultureInfo.CurrentUICulture in your server-side code, and maybe set the class.
Greetings,
Boyan Barnev
the Telerik team