From d97b762220eb4ae2ef89dfa23d5f67ab5d471c6f Mon Sep 17 00:00:00 2001 From: Fares Fouad Date: Thu, 16 Jul 2020 18:00:08 +0300 Subject: Add Arabic Date --- lib/locales/ar/date/index.js | 4 +++ lib/locales/ar/date/month.js | 63 ++++++++++++++++++++++++++++++++++++++++++ lib/locales/ar/date/weekday.js | 22 +++++++++++++++ lib/locales/ar/index.js | 1 + 4 files changed, 90 insertions(+) create mode 100644 lib/locales/ar/date/index.js create mode 100644 lib/locales/ar/date/month.js create mode 100644 lib/locales/ar/date/weekday.js (limited to 'lib') diff --git a/lib/locales/ar/date/index.js b/lib/locales/ar/date/index.js new file mode 100644 index 00000000..8c45d3f6 --- /dev/null +++ b/lib/locales/ar/date/index.js @@ -0,0 +1,4 @@ +var date = {}; +module["exports"] = date; +date.month = require("./month"); +date.weekday = require("./weekday"); diff --git a/lib/locales/ar/date/month.js b/lib/locales/ar/date/month.js new file mode 100644 index 00000000..b7808708 --- /dev/null +++ b/lib/locales/ar/date/month.js @@ -0,0 +1,63 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799 +module["exports"] = { + wide: [ + "كَانُون ٱلثَّانِي", + "شُبَاط", + "آذَار", + "نَيْسَان", + "أَيَّار", + "حَزِيرَان", + "تَمُّوز", + "آب", + "أَيْلُول", + "تِشْرِين ٱلْأَوَّل", + "تِشْرِين ٱلثَّانِي", + "كَانُون ٱلْأَوَّل", + ], + // Property "wide_context" is optional, if not set then "wide" will be used instead + // It is used to specify a word in context, which may differ from a stand-alone word + wide_context: [ + "كَانُون ٱلثَّانِي", + "شُبَاط", + "آذَار", + "نَيْسَان", + "أَيَّار", + "حَزِيرَان", + "تَمُّوز", + "آب", + "أَيْلُول", + "تِشْرِين ٱلْأَوَّل", + "تِشْرِين ٱلثَّانِي", + "كَانُون ٱلْأَوَّل", + ], + abbr: [ + "يناير", + "فبراير", + "مارس", + "إبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], + // Property "abbr_context" is optional, if not set then "abbr" will be used instead + // It is used to specify a word in context, which may differ from a stand-alone word + abbr_context: [ + "يناير", + "فبراير", + "مارس", + "إبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; diff --git a/lib/locales/ar/date/weekday.js b/lib/locales/ar/date/weekday.js new file mode 100644 index 00000000..3bbdfd27 --- /dev/null +++ b/lib/locales/ar/date/weekday.js @@ -0,0 +1,22 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847 +module["exports"] = { + wide: [ + "الأحَد", + "الإثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], + + wide_context: [ + "الأحَد", + "الإثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; diff --git a/lib/locales/ar/index.js b/lib/locales/ar/index.js index 01dad726..731b7542 100644 --- a/lib/locales/ar/index.js +++ b/lib/locales/ar/index.js @@ -8,3 +8,4 @@ ar.cell_phone = require("./cell_phone"); ar.commerce = require("./commerce"); ar.vehicle = require("./vehicle"); ar.team = require("./team"); +ar.date = require("./date"); -- cgit v1.2.3 From b754ee2da1fbc3990781725172e80f332c1e13df Mon Sep 17 00:00:00 2001 From: F-xobj Date: Thu, 16 Jul 2020 18:34:15 +0300 Subject: Add Arabic State --- lib/locales/ar/address/state.js | 63 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/locales/ar/address/state.js b/lib/locales/ar/address/state.js index eaed7742..391ec649 100644 --- a/lib/locales/ar/address/state.js +++ b/lib/locales/ar/address/state.js @@ -1,4 +1,26 @@ module["exports"] = [ + "القدس", + "تل الربيع", + "صفد", + "أريحا", + "بئر السبع", + "غزة", + "نابلس", + "الناصرة", + "بيت لحم", + "الخليل", + "يافا", + "حيفا", + "اللد", + "الرملة", + "عكا", + "سخنين", + "قلنسوة", + "طيرة", + "عرابة", + "رام الله", + "طولكرم", + "بئر السبع ", "تونس", "بن عروس", "أريانة", @@ -48,5 +70,44 @@ module["exports"] = [ "عنابة", "قالمة", "قسنطينة", - "المدية" + "المدية", + "عمان", + "الزرقاء", + "إربد", + "العقبة", + "السلط", + "المفرق", + "جرش", + "معان", + "عجلون", + "حلب", + "مشق", + "حمص", + "اللاذقية", + "حماة", + "طرطوس", + "ير الزور", + "السويداء", + "لحسكة", + "درعا", + "إدلب", + "بيروت", + "طرابلس", + "صيدا", + "صور", + "النبطية", + "زحلة", + "جونيه", + "حبوش", + "بعلبك", + "بغداد", + "البصرة", + "نينوى", + "أربيل", + "النجف", + "كركوك", + "المثنى", + "القادسية", + " بابل", + "كربلاء", ]; -- cgit v1.2.3 From 28d608b0e3b9f7c0d6d4ce457c2eafc3287ed816 Mon Sep 17 00:00:00 2001 From: FARES FOU'AD Date: Wed, 25 Nov 2020 23:56:09 +0200 Subject: update miswords --- lib/locales/ar/address/state.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/locales/ar/address/state.js b/lib/locales/ar/address/state.js index 391ec649..8488a648 100644 --- a/lib/locales/ar/address/state.js +++ b/lib/locales/ar/address/state.js @@ -81,14 +81,14 @@ module["exports"] = [ "معان", "عجلون", "حلب", - "مشق", + "دمشق", "حمص", "اللاذقية", "حماة", "طرطوس", - "ير الزور", + "دير الزور", "السويداء", - "لحسكة", + "الحسكة", "درعا", "إدلب", "بيروت", -- cgit v1.2.3