public function isRtl(string $language): bool
    {
        $result = false;

        // Simplify and verify, just in case
        $language = $this->localeToLanguage($language);
        if (in_array($language, $this->getRtl())) {
            $result = true;
        }

        return $result;
    }
public function isRtl(string $language): bool
    {
        $result = false;

        // Simplify and verify, just in case
        $language = $this->localeToLanguage($language);
        if (in_array($language, $this->getRtl())) {
            $result = true;
        }

        return $result;
    }
public function isRtl ( string $ language ) : bool { $ result = false ; // Simplify and verify, just in case $ language = $ this -> localeToLanguage ( $ language ) ; if ( in_array ( $ language , $ this -> getRtl ( ) ) ) { $ result = true ; } return $ result ; }
Check if given language is right-to-left

@param string $language Language code or locale string (example: ru_RU.KOI8-R)
@return bool
Check if given language is right - to - left