coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

Force RTL on Arabic and Hebrew #38

Closed danlavie closed 9 years ago

danlavie commented 10 years ago

Hello,

How do I make the text to align right to left if the local browser language is Arabic or Hebrew ?

Just for these two languages, I want to html page to use direction:"rtl";

Thanks

Dan

quodos commented 10 years ago

I'd use the callback function to assign some custom css via class or inline to the body element. However, you would need to somehow get the current language.

coderifous commented 9 years ago

This would not be handled by the plugin. As @quodos described, setting that yourself with some JS/CSS would be the answer.