src/i18n/Data/Intl/IntlLocales.php
public function scriptDirection($locale = null)
    {
        $dirs = static::config()->get('text_direction');
        if (!$locale) {
            $locale = i18n::get_locale();
        }
        if (isset($dirs[$locale])) {
            return $dirs[$locale];
        }
        $lang = $this->langFromLocale($locale);
        if (isset($dirs[$lang])) {
            return $dirs[$lang];
        }
        return 'ltr';
    }
public function scriptDirection($locale = null)
    {
        $dirs = static::config()->get('text_direction');
        if (!$locale) {
            $locale = i18n::get_locale();
        }
        if (isset($dirs[$locale])) {
            return $dirs[$locale];
        }
        $lang = $this->langFromLocale($locale);
        if (isset($dirs[$lang])) {
            return $dirs[$lang];
        }
        return 'ltr';
    }
public function scriptDirection ( $ locale = null ) { $ dirs = static :: config ( ) -> get ( 'text_direction' ) ; if ( ! $ locale ) { $ locale = i18n :: get_locale ( ) ; } if ( isset ( $ dirs [ $ locale ] ) ) { return $ dirs [ $ locale ] ; } $ lang = $ this -> langFromLocale ( $ locale ) ; if ( isset ( $ dirs [ $ lang ] ) ) { return $ dirs [ $ lang ] ; } return 'ltr' ; }
Returns the script direction in format compatible with the HTML "dir" attribute.

@see http://www.w3.org/International/tutorials/bidi-xhtml/
@param string $locale Optional locale incl. region (underscored)
@return string "rtl" or "ltr"
Returns the script direction in format compatible with the HTML dir attribute .