. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\ExtCalendar\ArabicCalendar; use Fisharebest\ExtCalendar\CalendarInterface; use Fisharebest\Localization\Locale\LocaleAr; use Fisharebest\Localization\Locale\LocaleInterface; /** * Class LanguageArabic. */ class LanguageArabic extends AbstractModule implements ModuleLanguageInterface { use ModuleLanguageTrait; /** * Phone-book ordering of letters. * * @return array */ public function alphabet(): array { return ['ا', 'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ك', 'ل', 'م', 'ن', 'ه', 'و', 'ي', 'آ', 'ة', 'ى', 'ی']; } /** * Default calendar used by this language. * * @return CalendarInterface */ public function calendar(): CalendarInterface { return new ArabicCalendar(); } /** * @return LocaleInterface */ public function locale(): LocaleInterface { return new LocaleAr(); } }