From 7865d092c07f00f948282ff075e415a96de6440b Mon Sep 17 00:00:00 2001 From: zer0-x <65136727+ZER0-X@users.noreply.github.com> Date: Sun, 31 Oct 2021 01:32:59 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9C=20Adding=20the=20Arabic=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/translations/ar.yaml | 20 ++++++++++++++++++++ tests/Factories/TranslationFactoryTest.php | 1 + 2 files changed, 21 insertions(+) create mode 100644 app/translations/ar.yaml diff --git a/app/translations/ar.yaml b/app/translations/ar.yaml new file mode 100644 index 0000000..d5ffb6c --- /dev/null +++ b/app/translations/ar.yaml @@ -0,0 +1,20 @@ +home: الرَئيِّسَة +download: تَنزيل هذا المُجَلَّد +search: البَحث +file: + name: اِسمُ المِلَف + size: الحَجم + date: التاريخ + info: مَعلومات المِلَف +powered_by: مُشغَّلٌ بِواسِطةِ +scroll_to_top: التَمرير لأعلَى +toggle_theme: تَبديلُ النَمَطِ الفاتِح/الداكِن + +error: + directory_not_found: يَتَعذَّرُ إيجادُ المُجَلَّد + file_not_found: يَتَعذَّرُ إيجادُ المِلَف + file_size_exceeded: حَجمُ المِلَف كَبيرٌ جدًا + no_results_found: لَم يُعثَر عَلى نتائِج + unexpected: حَدَثَ خطأٌ غَيرُ مُتوقَّع + +enable_debugging: تمكين نمط التصحيح للحصول على معلومات إضافيَّة diff --git a/tests/Factories/TranslationFactoryTest.php b/tests/Factories/TranslationFactoryTest.php index 2cfede1..a8123fb 100644 --- a/tests/Factories/TranslationFactoryTest.php +++ b/tests/Factories/TranslationFactoryTest.php @@ -17,6 +17,7 @@ class TranslationFactoryTest extends TestCase $translator = (new TranslationFactory($this->config, $this->cache))(); $this->assertEquals('en', $translator->getLocale()); + $this->assertInstanceOf(MessageCatalogue::class, $translator->getCatalogue('ar')); $this->assertInstanceOf(MessageCatalogue::class, $translator->getCatalogue('de')); $this->assertInstanceOf(MessageCatalogue::class, $translator->getCatalogue('en')); $this->assertInstanceOf(MessageCatalogue::class, $translator->getCatalogue('es'));