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