diff options
| author | Marak <[email protected]> | 2021-02-08 23:37:58 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-08 23:37:58 -0500 |
| commit | 649e552a7d73db8f4079de96038d7de12f7afd8c (patch) | |
| tree | 1f82c4276f373d789e7f06bd70cf36fea7edae4a /lib | |
| parent | 8b0abfbf5ba2deb34a653ce6f41130256c08b9d6 (diff) | |
| parent | 28d608b0e3b9f7c0d6d4ce457c2eafc3287ed816 (diff) | |
| download | faker-649e552a7d73db8f4079de96038d7de12f7afd8c.tar.xz faker-649e552a7d73db8f4079de96038d7de12f7afd8c.zip | |
Merge pull request #933 from F-xobj/Arabic
Add Arabic Date
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/ar/address/state.js | 63 | ||||
| -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 |
5 files changed, 152 insertions, 1 deletions
diff --git a/lib/locales/ar/address/state.js b/lib/locales/ar/address/state.js index eaed7742..8488a648 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"] = [ "عنابة", "قالمة", "قسنطينة", - "المدية" + "المدية", + "عمان", + "الزرقاء", + "إربد", + "العقبة", + "السلط", + "المفرق", + "جرش", + "معان", + "عجلون", + "حلب", + "دمشق", + "حمص", + "اللاذقية", + "حماة", + "طرطوس", + "دير الزور", + "السويداء", + "الحسكة", + "درعا", + "إدلب", + "بيروت", + "طرابلس", + "صيدا", + "صور", + "النبطية", + "زحلة", + "جونيه", + "حبوش", + "بعلبك", + "بغداد", + "البصرة", + "نينوى", + "أربيل", + "النجف", + "كركوك", + "المثنى", + "القادسية", + " بابل", + "كربلاء", ]; 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 ff0a4528..cfaa5d6b 100644 --- a/lib/locales/ar/index.js +++ b/lib/locales/ar/index.js @@ -9,3 +9,4 @@ ar.cell_phone = require("./cell_phone"); ar.commerce = require("./commerce"); ar.vehicle = require("./vehicle"); ar.team = require("./team"); +ar.date = require("./date"); |
