Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to get current culture in razor page?

$
0
0

I wanna to get current culture in razor page to decide which online font to load,and I can hardly find how to get it in razor page.

However I have  a stupid way to it as below:

@{

if(Localizer["Language"]=="English")

{

///load the css

}}

But I think it is so ugly,if there has a better way to get current culture in razor page?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>