The :-moz-locale-dir(ltr) CSS pseudo-class matches an element if the user interface is being displayed left-to-right. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "ltr".
Returns the code of the currently active language.
Returns the direction of the currently active language (ltr or rtl).
readyState should be used sparingly;  L10n.ready() and L10n.once() are usually better suited for controlling when code is run relative to the state of the localization.
The :-moz-locale-dir(rtl) CSS pseudo-class matches an element if the user interface is being displayed right-to-left. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "rtl".