12

I need to be able to detect whether the current language my user is viewing is an RTL (Right To Left) language like Arabic, so I can include a specific CSS file in my pages.

At the moment I'm just detecting this based on the language code of the CultureInfo object, but there must be a better way?

j0k
  • 22,600
  • 28
  • 79
  • 90
spmason
  • 4,048
  • 2
  • 24
  • 19

1 Answers1

18
CultureInfo.TextInfo.IsRightToLeft
John Saunders
  • 160,644
  • 26
  • 247
  • 397