add basic RTL support, drop default language key

This commit is contained in:
El RIDO
2023-09-19 07:29:00 +02:00
parent 896a49c8cf
commit 5c97443d1d
43 changed files with 53 additions and 59 deletions
+12
View File
@@ -272,6 +272,18 @@ class I18n
return array_intersect_key(self::$_languageLabels, array_flip($languages));
}
/**
* determines if the current language is written right-to-left (RTL)
*
* @access public
* @static
* @return bool
*/
public static function isRtl()
{
return in_array(self::$_language, array('ar', 'he'));
}
/**
* set the default language
*