aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2018-09-22 20:48:59 -0400
committerMarak <[email protected]>2018-09-22 20:48:59 -0400
commitd1f79817f74bb78d23b6632fa3824bc20ac45186 (patch)
tree922658dda6becf3303b1a4fc642dc8461abca73d /lib
parentbb1f597d2ad9967c7e4e7fcdb73cd25a5b1aa9fb (diff)
downloadfaker-d1f79817f74bb78d23b6632fa3824bc20ac45186.tar.xz
faker-d1f79817f74bb78d23b6632fa3824bc20ac45186.zip
Added `ar` locale (partial ) #505
* Merges work from @atefBB * Original PR could not be merged
Diffstat (limited to 'lib')
-rw-r--r--lib/locales.js1
-rw-r--r--lib/locales/ar/address/building_number.js5
-rw-r--r--lib/locales/ar/address/city.js3
-rw-r--r--lib/locales/ar/address/city_name.js144
-rw-r--r--lib/locales/ar/address/country.js244
-rw-r--r--lib/locales/ar/address/default_country.js3
-rw-r--r--lib/locales/ar/address/index.js12
-rw-r--r--lib/locales/ar/address/postcode.js4
-rw-r--r--lib/locales/ar/address/postcode_by_state.js4
-rw-r--r--lib/locales/ar/address/secondary_address.js4
-rw-r--r--lib/locales/ar/address/state.js52
-rw-r--r--lib/locales/ar/address/street_address.js3
-rw-r--r--lib/locales/ar/address/street_name.js4
-rw-r--r--lib/locales/ar/address/street_prefix.js10
-rw-r--r--lib/locales/ar/cell_phone/formats.js6
-rw-r--r--lib/locales/ar/cell_phone/index.js3
-rw-r--r--lib/locales/ar/commerce/color.js33
-rw-r--r--lib/locales/ar/commerce/department.js22
-rw-r--r--lib/locales/ar/commerce/index.js4
-rw-r--r--lib/locales/ar/index.js8
-rw-r--r--lib/locales/ar/phone_number/formats.js22
-rw-r--r--lib/locales/ar/phone_number/index.js3
22 files changed, 594 insertions, 0 deletions
diff --git a/lib/locales.js b/lib/locales.js
index 41deadf5..e22952ad 100644
--- a/lib/locales.js
+++ b/lib/locales.js
@@ -1,4 +1,5 @@
exports['az'] = require('./locales/az');
+exports['ar'] = require('./locales/ar');
exports['cz'] = require('./locales/cz');
exports['de'] = require('./locales/de');
exports['de_AT'] = require('./locales/de_AT');
diff --git a/lib/locales/ar/address/building_number.js b/lib/locales/ar/address/building_number.js
new file mode 100644
index 00000000..76d63929
--- /dev/null
+++ b/lib/locales/ar/address/building_number.js
@@ -0,0 +1,5 @@
+module["exports"] = [
+ "#####",
+ "####",
+ "###"
+];
diff --git a/lib/locales/ar/address/city.js b/lib/locales/ar/address/city.js
new file mode 100644
index 00000000..d62eafb1
--- /dev/null
+++ b/lib/locales/ar/address/city.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "#{city_name}"
+];
diff --git a/lib/locales/ar/address/city_name.js b/lib/locales/ar/address/city_name.js
new file mode 100644
index 00000000..b096cdde
--- /dev/null
+++ b/lib/locales/ar/address/city_name.js
@@ -0,0 +1,144 @@
+module["exports"] = [
+ "مكة",
+ "المدينة",
+ "القاهرة",
+ "جدة",
+ "تونس",
+ "طرابلس",
+ "بيروت",
+ "الإسكندرية",
+ "بنغازي",
+ "صفاقس",
+ "مراكش",
+ "الدار البيضاء",
+ "غرناطة",
+ "فاس",
+ "وهران",
+ "الجزائر",
+ "الخرطوم",
+ "مقديشو",
+ "القدس",
+ "غزة",
+ "جنين",
+ "نابلس",
+ "دمشق",
+ "بغداد",
+ "البصرة",
+ "صلاح الدين",
+ "الكوفة",
+ "عمان",
+ "صنعاء",
+ "حضرموت",
+ "المنامة",
+ "صيدا",
+ "بنزرت",
+ "سوسة",
+ "نابل",
+ "الحمامات",
+ "جربة",
+ "حلب",
+ "الرياض",
+ "الدّمام",
+ "أبها",
+ "جازان",
+ "القطيف",
+ "الدرعية",
+ "عُنيزة",
+ "نجد",
+ "رابغ",
+ "دبي",
+ "العين",
+ "رأس الخيمة",
+ "أبو ظبي",
+ "عجمان",
+ "الفجيرة",
+ "الرويس",
+ "مصفح",
+ "دوز",
+ "السلع",
+ "الرحبة",
+ "الجهراء",
+ "الكويت",
+ "الفرْوانية",
+ "حَوَلِّـي",
+ "الأحمدي",
+ "الدوحة",
+ "الريان",
+ "دخان",
+ "الخور",
+ "أبو الظلوف",
+ "العريش",
+ "الغنيم",
+ "الغرية",
+ "الموصل",
+ "أربيل",
+ "نينوى",
+ "الأنبار",
+ "الحلة",
+ "سامراء",
+ "ذي قار",
+ "بابل",
+ "واسط",
+ "القادسية",
+ "العقبة",
+ "الكرك",
+ "إربد",
+ "عنجرة",
+ "المفرق",
+ "الفحيص",
+ "أريحا",
+ "يافا",
+ "عكا",
+ "رام الله",
+ "جنين",
+ "بيت لحم",
+ "الرملة",
+ "بيسان",
+ "صفد",
+ "قلقيلية",
+ "طولكرم",
+ "بيت حانون",
+ "صور",
+ "بعلبك",
+ "مرجعيون",
+ "عنجر",
+ "الخيام",
+ "الشرقية",
+ "حمص",
+ "اللاذقية",
+ "تدمر",
+ "حماة",
+ "طرسوس",
+ "بصرى",
+ "معرة النعمان",
+ "دير الزور",
+ "داريا",
+ "دوما",
+ "التل",
+ "إدلب",
+ "عدن",
+ "مأرب",
+ "إب",
+ "عمران",
+ "الشحر",
+ "البيضاء",
+ "بيحان",
+ "يريم",
+ "تريم",
+ "معبر",
+ "الضالع",
+ "بورسعيد",
+ "أسيوط",
+ "الأقصر",
+ "أسوان",
+ "العريش",
+ "المنيا",
+ "سوهاج",
+ "دمياط",
+ "قنا",
+ "سبك الأحد",
+ "نواكشوط",
+ "شمقيط",
+ "وادان",
+ "دورا"
+];
diff --git a/lib/locales/ar/address/country.js b/lib/locales/ar/address/country.js
new file mode 100644
index 00000000..18469d7f
--- /dev/null
+++ b/lib/locales/ar/address/country.js
@@ -0,0 +1,244 @@
+module["exports"] = [
+ "أفغانستان",
+ "ألبانيا",
+ "الجزائر",
+ "أمريكا ساماو",
+ "أندورا",
+ "أنجولا",
+ "أنجويلا",
+ "أنتاركتيكا",
+ "أنتيغوا وباربودا",
+ "الأرجنتين",
+ "أرمينيا",
+ "أروبا",
+ "أرستراليا",
+ "أستريا",
+ "أذرابيجان",
+ "بهماس",
+ "البحرين",
+ "بنغلادش",
+ "بربادوس",
+ "بلاروسيا",
+ "بلجيكا",
+ "بليز",
+ "بينين",
+ "برمودا",
+ "بوتان",
+ "بوليفيا",
+ "البوسنة والهرسك",
+ "بوتسوانا",
+ "جزيرة بوفيه",
+ "البرازيل",
+ "إقليم المحيط الهندي البريطاني",
+ "برونوي دار السلام",
+ "بلغاريا",
+ "بوركينا فاسو",
+ "بوروندي",
+ "كمبوديا",
+ "كاميرون",
+ "كندا",
+ "الرأس الأخضر",
+ "جزر كايمان",
+ "جمهورية إفريقيا الوسطى",
+ "التشاد",
+ "شيلي",
+ "الصين",
+ "جزيرة عيد الميلاد",
+ "جزر كوكوس",
+ "كولومبيا",
+ "Comoros",
+ "كونجو",
+ "جزر كوك",
+ "كوستا ريكا",
+ "ساحل العاج",
+ "كرواتيا",
+ "كوبا",
+ "قبرص",
+ "التشيك",
+ "دنمارك",
+ "جيبوتي",
+ "دومينيكا",
+ "جمهورية الدومينيكان",
+ "إكوادور",
+ "مصر",
+ "السلفادور",
+ "غينيا الاستوائية",
+ "إريتريا",
+ "إستونيا",
+ "أثيوبيا",
+ "جزر فارو",
+ "جزر فوكلاند",
+ "فيجي",
+ "فلندا",
+ "فرنست",
+ "غويانا الفرنسية",
+ "بولينزيا الفرنسية",
+ "أراض فرنسية جنوبية وأنتارتيكية",
+ "جابون",
+ "غمبيا",
+ "جورجيا",
+ "ألمانيا",
+ "غانا",
+ "جبل طارق",
+ "اليونان",
+ "الأرض الخضراء",
+ "غرينادا",
+ "غوادلوب",
+ "غوام",
+ "غواتيمالا",
+ "غيرنزي",
+ "غينيا",
+ "غينيا بيساو",
+ "غيانا",
+ "هايتي",
+ "جزيرة هيرد وجزر ماكدونالد",
+ "الفاتيكان",
+ "هندوراس",
+ "هونكونغ",
+ "هنقاريا",
+ "إسلاند",
+ "الهند",
+ "أندونيسيا",
+ "إيران",
+ "العراق",
+ "إيرلامدا",
+ "جزيرة مان",
+ "إيطاليا",
+ "جامايكا",
+ "اليابان",
+ "جيرزي",
+ "الأردن",
+ "كازاخستان",
+ "كنيا",
+ "كيريباتي",
+ "كوريا الشمالية",
+ "كوريا الجنوبية",
+ "الكويت",
+ "قيرغيزستان",
+ "لاوس",
+ "لتفيا",
+ "لبنان",
+ "ليسوتو",
+ "ليبيريا",
+ "ليبيا",
+ "ليختنشتاين",
+ "ليتيواتيا",
+ "ليكسمبورغ",
+ "ماكاو",
+ "مقدونيا",
+ "مدغشقر",
+ "ملاوي",
+ "ماليزيا",
+ "ملديف",
+ "مالي",
+ "مالطا",
+ "جزر مارشال",
+ "مارتينيك",
+ "موريتانيا",
+ "موريشيوس",
+ "مايوت",
+ "المكسيك",
+ "ولايات ميكرونيسيا المتحدة",
+ "مولدوفا",
+ "موناكو",
+ "منغوليا",
+ "مونتينيغرو",
+ "مونتسرات",
+ "المغرب",
+ "موزنبيق",
+ "ميانمار",
+ "ناميبيا",
+ "ناورو",
+ "نيبال",
+ "جزر الأنتيل الهولندية",
+ "هولاندا",
+ "كالودونيا الجديدة",
+ "زيلاندا الجديدة",
+ "نيكاراغوا",
+ "النيجر",
+ "نيجيريا",
+ "نييوي",
+ "جزيرة نورفولك",
+ "جزر ماريانا الشمالية",
+ "نورواي",
+ "عمان",
+ "باكستان",
+ "بالاو",
+ "فلسطين",
+ "بانما",
+ "بابوا غينيا الجديدة",
+ "باراغواي",
+ "بيرو",
+ "الفيليبين",
+ "جزر بيتكيرن",
+ "بولندا",
+ "البرتغال",
+ "بورتو ريكو",
+ "قطر",
+ "لا ريونيون",
+ "رومانيا",
+ "روسيا",
+ "روندا",
+ "سان بارتيلمي",
+ "سانت هيلانة",
+ "سانت كيتس ونيفيس",
+ "سانت لوسيا",
+ "سانت نرتان",
+ "سان بيير وميكلون",
+ "سانت فينسنت والغرينادين",
+ "ساماو",
+ "سان مارينو",
+ "ساو تومي وبرينسيب",
+ "السعودية",
+ "السنغال",
+ "صربيا",
+ "سيشال",
+ "سيراليون",
+ "سنغفورة",
+ "سلوفاكيا",
+ "سلوفينيا",
+ "جزر سليمان",
+ "الصومال",
+ "جنوب إفريقيا",
+ "جورجيا الجنوبية وجزر ساندويتش الجنوبية",
+ "إسبانيا",
+ "سيري لانكا",
+ "السودان",
+ "سيرينام",
+ "سفالبارد ويان ماين",
+ "سوازيلاند",
+ "السويد",
+ "سويسرا",
+ "سوريا",
+ "تايوات",
+ "طاجكستان",
+ "تنزانيا",
+ "تايلاند",
+ "تيمور الشرقية",
+ "توغو",
+ "توكيلاو",
+ "تونغوا",
+ "ترينيداد وتوباغو",
+ "تونس",
+ "تركيا",
+ "تركمنستان",
+ "جزر توركس وكايكوس",
+ "توفالو",
+ "أوغندا",
+ "أكرانيا",
+ "الإمارات العربية المتحدة",
+ "بريطانيا",
+ "أمريكا",
+ "جزر الولايات المتحدة الصغيرة النائية",
+ "أرغواي",
+ "أزباكستان",
+ "فانواتو",
+ "فينيزويلا",
+ "فيتنام",
+ "جزر العذراء البريطانية",
+ "جزر العذراء الأمريكية",
+ "واليس وفوتونا",
+ "اليمن",
+ "زمبيا",
+ "زمبابوي"
+];
diff --git a/lib/locales/ar/address/default_country.js b/lib/locales/ar/address/default_country.js
new file mode 100644
index 00000000..bdd19df6
--- /dev/null
+++ b/lib/locales/ar/address/default_country.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "المملكة العربية السعودية"
+];
diff --git a/lib/locales/ar/address/index.js b/lib/locales/ar/address/index.js
new file mode 100644
index 00000000..d1e09fc6
--- /dev/null
+++ b/lib/locales/ar/address/index.js
@@ -0,0 +1,12 @@
+var address = {};
+module['exports'] = address;
+address.country = require("./country");
+address.building_number = require("./building_number");
+address.secondary_address = require("./secondary_address");
+address.postcode = require("./postcode");
+address.postcode_by_state = require("./postcode_by_state");
+address.state = require("./state");
+address.city = require("./city");
+address.street_name = require("./street_name");
+address.street_address = require("./street_address");
+address.default_country = require("./default_country"); \ No newline at end of file
diff --git a/lib/locales/ar/address/postcode.js b/lib/locales/ar/address/postcode.js
new file mode 100644
index 00000000..f233d46c
--- /dev/null
+++ b/lib/locales/ar/address/postcode.js
@@ -0,0 +1,4 @@
+module["exports"] = [
+ "#####",
+ "#####-####"
+];
diff --git a/lib/locales/ar/address/postcode_by_state.js b/lib/locales/ar/address/postcode_by_state.js
new file mode 100644
index 00000000..f233d46c
--- /dev/null
+++ b/lib/locales/ar/address/postcode_by_state.js
@@ -0,0 +1,4 @@
+module["exports"] = [
+ "#####",
+ "#####-####"
+];
diff --git a/lib/locales/ar/address/secondary_address.js b/lib/locales/ar/address/secondary_address.js
new file mode 100644
index 00000000..b4757b24
--- /dev/null
+++ b/lib/locales/ar/address/secondary_address.js
@@ -0,0 +1,4 @@
+module["exports"] = [
+ "### عمارة",
+ "### طابق"
+];
diff --git a/lib/locales/ar/address/state.js b/lib/locales/ar/address/state.js
new file mode 100644
index 00000000..eaed7742
--- /dev/null
+++ b/lib/locales/ar/address/state.js
@@ -0,0 +1,52 @@
+module["exports"] = [
+ "تونس",
+ "بن عروس",
+ "أريانة",
+ "باجة",
+ "بنزرت",
+ "قابس",
+ "قفصة",
+ "جندوبة",
+ "القيروان",
+ "القصرين",
+ "قبلي",
+ "الكاف",
+ "المهدية",
+ "منوبة",
+ "مدنين",
+ "المنستير",
+ "نابل",
+ "صفاقس",
+ "بوزيد",
+ "سليانة",
+ "سوسة",
+ "تطاوين",
+ "توزر",
+ "زغوان",
+ "أدرار",
+ "الشلف",
+ "الأغواط",
+ "أم البواقي",
+ "باتنة",
+ "بجاية",
+ "بسكرة",
+ "بشار",
+ "البليدة",
+ "البويرة",
+ "تمنراست",
+ "تبسة",
+ "تلمسان",
+ "تيارت",
+ "تيزي وزو",
+ "الجزائر",
+ "الجلفة",
+ "جيجل",
+ "سطيف",
+ "سعيدة",
+ "سكيكدة",
+ "بلعباس",
+ "عنابة",
+ "قالمة",
+ "قسنطينة",
+ "المدية"
+];
diff --git a/lib/locales/ar/address/street_address.js b/lib/locales/ar/address/street_address.js
new file mode 100644
index 00000000..289216e7
--- /dev/null
+++ b/lib/locales/ar/address/street_address.js
@@ -0,0 +1,3 @@
+module["exports"] = [
+ "#{building_number} #{street_name}"
+];
diff --git a/lib/locales/ar/address/street_name.js b/lib/locales/ar/address/street_name.js
new file mode 100644
index 00000000..c104f0e3
--- /dev/null
+++ b/lib/locales/ar/address/street_name.js
@@ -0,0 +1,4 @@
+module["exports"] = [
+ "#{street_preffix} #{Name.first_name}",
+ "#{street_preffix} #{Name.last_name}"
+];
diff --git a/lib/locales/ar/address/street_prefix.js b/lib/locales/ar/address/street_prefix.js
new file mode 100644
index 00000000..0a1b7352
--- /dev/null
+++ b/lib/locales/ar/address/street_prefix.js
@@ -0,0 +1,10 @@
+module["exports"] = [
+ "درب، طريق",
+ "شارع",
+ "سبيل",
+ "جادة",
+ "رصيف",
+ "مَمَر",
+ "طريق مسدود",
+ "ساحة"
+];
diff --git a/lib/locales/ar/cell_phone/formats.js b/lib/locales/ar/cell_phone/formats.js
new file mode 100644
index 00000000..09a6d2a5
--- /dev/null
+++ b/lib/locales/ar/cell_phone/formats.js
@@ -0,0 +1,6 @@
+module["exports"] = [
+ "###-###-####",
+ "(###) ###-####",
+ "1-###-###-####",
+ "###.###.####"
+];
diff --git a/lib/locales/ar/cell_phone/index.js b/lib/locales/ar/cell_phone/index.js
new file mode 100644
index 00000000..8de997ba
--- /dev/null
+++ b/lib/locales/ar/cell_phone/index.js
@@ -0,0 +1,3 @@
+var cell_phone = {};
+module['exports'] = cell_phone;
+cell_phone.formats = require("./formats");
diff --git a/lib/locales/ar/commerce/color.js b/lib/locales/ar/commerce/color.js
new file mode 100644
index 00000000..cac0fbf5
--- /dev/null
+++ b/lib/locales/ar/commerce/color.js
@@ -0,0 +1,33 @@
+module["exports"] = [
+ "أحمر",
+ "أخضر",
+ "أزرق",
+ "أصفر",
+ "purple",
+ "mint green",
+ "teal",
+ "أبيض",
+ "أسود",
+ "برتقالي",
+ "pink",
+ "بني",
+ "maroon",
+ "بنفسجي",
+ "turquoise",
+ "tan",
+ "sky blue",
+ "salmon",
+ "plum",
+ "orchid",
+ "olive",
+ "magenta",
+ "lime",
+ "ivory",
+ "indigo",
+ "ذهبي",
+ "fuchsia",
+ "cyan",
+ "azure",
+ "lavender",
+ "فضي"
+];
diff --git a/lib/locales/ar/commerce/department.js b/lib/locales/ar/commerce/department.js
new file mode 100644
index 00000000..3b07fca7
--- /dev/null
+++ b/lib/locales/ar/commerce/department.js
@@ -0,0 +1,22 @@
+module["exports"] = [
+ "كتب",
+ "ألعاب",
+ "إلكترونيات",
+ "حواسيب",
+ "بيت",
+ "Garden",
+ "أدوات",
+ "Grocery",
+ "صحة",
+ "جمال",
+ "Toys",
+ "أطفال",
+ "رضع",
+ "ملابس",
+ "أحذية",
+ "Jewelery",
+ "أغراض رياضية",
+ "Outdoors",
+ "Automotive",
+ "صناعة"
+];
diff --git a/lib/locales/ar/commerce/index.js b/lib/locales/ar/commerce/index.js
new file mode 100644
index 00000000..e8242422
--- /dev/null
+++ b/lib/locales/ar/commerce/index.js
@@ -0,0 +1,4 @@
+var commerce = {};
+module['exports'] = commerce;
+commerce.color = require("./color");
+commerce.department = require("./department"); \ No newline at end of file
diff --git a/lib/locales/ar/index.js b/lib/locales/ar/index.js
new file mode 100644
index 00000000..13c9242c
--- /dev/null
+++ b/lib/locales/ar/index.js
@@ -0,0 +1,8 @@
+var en = {};
+module['exports'] = en;
+en.title = "English";
+en.separator = " & ";
+en.address = require("./address");
+en.phone_number = require("./phone_number");
+en.cell_phone = require("./cell_phone");
+en.commerce = require("./commerce"); \ No newline at end of file
diff --git a/lib/locales/ar/phone_number/formats.js b/lib/locales/ar/phone_number/formats.js
new file mode 100644
index 00000000..ad3b2a47
--- /dev/null
+++ b/lib/locales/ar/phone_number/formats.js
@@ -0,0 +1,22 @@
+module["exports"] = [
+ "###-###-####",
+ "(###) ###-####",
+ "1-###-###-####",
+ "###.###.####",
+ "###-###-####",
+ "(###) ###-####",
+ "1-###-###-####",
+ "###.###.####",
+ "###-###-#### x###",
+ "(###) ###-#### x###",
+ "1-###-###-#### x###",
+ "###.###.#### x###",
+ "###-###-#### x####",
+ "(###) ###-#### x####",
+ "1-###-###-#### x####",
+ "###.###.#### x####",
+ "###-###-#### x#####",
+ "(###) ###-#### x#####",
+ "1-###-###-#### x#####",
+ "###.###.#### x#####"
+];
diff --git a/lib/locales/ar/phone_number/index.js b/lib/locales/ar/phone_number/index.js
new file mode 100644
index 00000000..8d35e011
--- /dev/null
+++ b/lib/locales/ar/phone_number/index.js
@@ -0,0 +1,3 @@
+var phone_number = {};
+module['exports'] = phone_number;
+phone_number.formats = require("./formats");