diff options
| author | Fares Fouad <[email protected]> | 2020-07-16 18:00:08 +0300 |
|---|---|---|
| committer | F-xobj <[email protected]> | 2020-07-16 18:05:16 +0300 |
| commit | d97b762220eb4ae2ef89dfa23d5f67ab5d471c6f (patch) | |
| tree | 2d36b141f9b7b27d8446f2595c3cec7e1a54fe06 /lib | |
| parent | bfe2c9906abd29b7d3d925e6d7cc41530c3a42b8 (diff) | |
| download | faker-d97b762220eb4ae2ef89dfa23d5f67ab5d471c6f.tar.xz faker-d97b762220eb4ae2ef89dfa23d5f67ab5d471c6f.zip | |
Add Arabic Date
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/ar/date/index.js | 4 | ||||
| -rw-r--r-- | lib/locales/ar/date/month.js | 63 | ||||
| -rw-r--r-- | lib/locales/ar/date/weekday.js | 22 | ||||
| -rw-r--r-- | lib/locales/ar/index.js | 1 |
4 files changed, 90 insertions, 0 deletions
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"); |
