From d1f79817f74bb78d23b6632fa3824bc20ac45186 Mon Sep 17 00:00:00 2001 From: Marak Date: Sat, 22 Sep 2018 20:48:59 -0400 Subject: [PATCH] Added `ar` locale (partial ) #505 * Merges work from @atefBB * Original PR could not be merged --- lib/locales.js | 1 + lib/locales/ar/address/building_number.js | 5 + lib/locales/ar/address/city.js | 3 + lib/locales/ar/address/city_name.js | 144 ++++++++++++ lib/locales/ar/address/country.js | 244 ++++++++++++++++++++ lib/locales/ar/address/default_country.js | 3 + lib/locales/ar/address/index.js | 12 + lib/locales/ar/address/postcode.js | 4 + lib/locales/ar/address/postcode_by_state.js | 4 + lib/locales/ar/address/secondary_address.js | 4 + lib/locales/ar/address/state.js | 52 +++++ lib/locales/ar/address/street_address.js | 3 + lib/locales/ar/address/street_name.js | 4 + lib/locales/ar/address/street_prefix.js | 10 + lib/locales/ar/cell_phone/formats.js | 6 + lib/locales/ar/cell_phone/index.js | 3 + lib/locales/ar/commerce/color.js | 33 +++ lib/locales/ar/commerce/department.js | 22 ++ lib/locales/ar/commerce/index.js | 4 + lib/locales/ar/index.js | 8 + lib/locales/ar/phone_number/formats.js | 22 ++ lib/locales/ar/phone_number/index.js | 3 + 22 files changed, 594 insertions(+) create mode 100644 lib/locales/ar/address/building_number.js create mode 100644 lib/locales/ar/address/city.js create mode 100644 lib/locales/ar/address/city_name.js create mode 100644 lib/locales/ar/address/country.js create mode 100644 lib/locales/ar/address/default_country.js create mode 100644 lib/locales/ar/address/index.js create mode 100644 lib/locales/ar/address/postcode.js create mode 100644 lib/locales/ar/address/postcode_by_state.js create mode 100644 lib/locales/ar/address/secondary_address.js create mode 100644 lib/locales/ar/address/state.js create mode 100644 lib/locales/ar/address/street_address.js create mode 100644 lib/locales/ar/address/street_name.js create mode 100644 lib/locales/ar/address/street_prefix.js create mode 100644 lib/locales/ar/cell_phone/formats.js create mode 100644 lib/locales/ar/cell_phone/index.js create mode 100644 lib/locales/ar/commerce/color.js create mode 100644 lib/locales/ar/commerce/department.js create mode 100644 lib/locales/ar/commerce/index.js create mode 100644 lib/locales/ar/index.js create mode 100644 lib/locales/ar/phone_number/formats.js create mode 100644 lib/locales/ar/phone_number/index.js diff --git a/lib/locales.js b/lib/locales.js index 41deadf56..e22952ad8 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 000000000..76d639296 --- /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 000000000..d62eafb10 --- /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 000000000..b096cdde5 --- /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 000000000..18469d7f5 --- /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 000000000..bdd19df64 --- /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 000000000..d1e09fc6c --- /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 000000000..f233d46cb --- /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 000000000..f233d46cb --- /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 000000000..b4757b247 --- /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 000000000..eaed77426 --- /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 000000000..289216e77 --- /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 000000000..c104f0e32 --- /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 000000000..0a1b73527 --- /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 000000000..09a6d2a5e --- /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 000000000..8de997ba3 --- /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 000000000..cac0fbf5c --- /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 000000000..3b07fca75 --- /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 000000000..e82424220 --- /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 000000000..13c9242c4 --- /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 000000000..ad3b2a47b --- /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 000000000..8d35e0119 --- /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");