diff --git a/src/locales/ar/date/month.ts b/src/locales/ar/date/month.ts index 9da7bf762b2..af1a43571fb 100644 --- a/src/locales/ar/date/month.ts +++ b/src/locales/ar/date/month.ts @@ -13,22 +13,7 @@ export default { 'تِشْرِين ٱلثَّانِي', 'كَانُون ٱلْأَوَّل', ], - // 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: [ 'يناير', 'فبراير', @@ -43,20 +28,4 @@ export default { 'نوفمبر', 'ديسمبر', ], - // 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/src/locales/ar/date/weekday.ts b/src/locales/ar/date/weekday.ts index 4d727c66a11..7493eff7c2e 100644 --- a/src/locales/ar/date/weekday.ts +++ b/src/locales/ar/date/weekday.ts @@ -10,14 +10,4 @@ export default { 'الجمعة', 'السبت', ], - - wide_context: [ - 'الأحَد', - 'الإثنين', - 'الثلاثاء', - 'الأربعاء', - 'الخميس', - 'الجمعة', - 'السبت', - ], } as DateEntryDefinition; diff --git a/src/locales/cz/date/month.ts b/src/locales/cz/date/month.ts index e57767ecf5d..1ee4048b6d2 100644 --- a/src/locales/cz/date/month.ts +++ b/src/locales/cz/date/month.ts @@ -13,22 +13,7 @@ export default { 'Listopad', 'Prosinec', ], - // 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: [ - 'Leden', - 'Únor', - 'Březen', - 'Duben', - 'Květen', - 'Červen', - 'Červenec', - 'Srpen', - 'Září', - 'Říjen', - 'Listopad', - 'Prosinec', - ], + abbr: [ 'Led', 'Úno', @@ -43,20 +28,4 @@ export default { 'Lis', 'Pro', ], - // 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: [ - 'Led', - 'Úno', - 'Bře', - 'Dub', - 'Kvě', - 'Čer', - 'Črc', - 'Srp', - 'Zář', - 'Říj', - 'Lis', - 'Pro', - ], }; diff --git a/src/locales/cz/date/weekday.ts b/src/locales/cz/date/weekday.ts index fa214420953..92bde38227b 100644 --- a/src/locales/cz/date/weekday.ts +++ b/src/locales/cz/date/weekday.ts @@ -1,18 +1,5 @@ export default { wide: ['Pondělí', 'Úterý', 'Středa', 'čtvrtek', 'Pátek', 'Sobota', 'Neděle'], - // 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: [ - 'Pondělí', - 'Úterý', - 'Středa', - 'čtvrtek', - 'Pátek', - 'Sobota', - 'Neděle', - ], + abbr: ['Po', 'Út', 'St', 'čt', 'Pá', 'So', 'Ne'], - // 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: ['Po', 'Út', 'St', 'čt', 'Pá', 'So', 'Ne'], }; diff --git a/src/locales/de/date/month.ts b/src/locales/de/date/month.ts index 3d647a36aa1..99c3864589a 100644 --- a/src/locales/de/date/month.ts +++ b/src/locales/de/date/month.ts @@ -13,22 +13,7 @@ export default { 'November', 'Dezember', ], - // 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: [ - 'Januar', - 'Februar', - 'März', - 'April', - 'Mai', - 'Juni', - 'Juli', - 'August', - 'September', - 'Oktober', - 'November', - 'Dezember', - ], + abbr: [ 'Jan', 'Feb', @@ -43,20 +28,4 @@ export default { 'Nov', 'Dez', ], - // 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: [ - 'Jan', - 'Feb', - 'Mrz', - 'Apr', - 'Mai', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Okt', - 'Nov', - 'Dez', - ], }; diff --git a/src/locales/de/date/weekday.ts b/src/locales/de/date/weekday.ts index 18c927883b4..614c1093c0d 100644 --- a/src/locales/de/date/weekday.ts +++ b/src/locales/de/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'Freitag', 'Samstag', ], - // 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: [ - 'Sonntag', - 'Montag', - 'Dienstag', - 'Mittwoch', - 'Donnerstag', - 'Freitag', - 'Samstag', - ], + abbr: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], - // 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: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], }; diff --git a/src/locales/en/date/month.ts b/src/locales/en/date/month.ts index 7dc2ca25ddd..815861e529e 100644 --- a/src/locales/en/date/month.ts +++ b/src/locales/en/date/month.ts @@ -13,22 +13,7 @@ export default { 'November', 'December', ], - // 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: [ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December', - ], + abbr: [ 'Jan', 'Feb', @@ -43,20 +28,4 @@ export default { 'Nov', 'Dec', ], - // 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: [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec', - ], }; diff --git a/src/locales/en/date/weekday.ts b/src/locales/en/date/weekday.ts index 8d269aefb5f..fc79009ee17 100644 --- a/src/locales/en/date/weekday.ts +++ b/src/locales/en/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'Friday', 'Saturday', ], - // 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: [ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday', - ], + abbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - // 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: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], }; diff --git a/src/locales/fa/date/month.ts b/src/locales/fa/date/month.ts index 7faa95d3023..249d5ec2cda 100644 --- a/src/locales/fa/date/month.ts +++ b/src/locales/fa/date/month.ts @@ -13,20 +13,7 @@ export default { 'بهمن', 'اسفند', ], - wide_context: [ - 'فروردین', - 'اردیبهشت', - 'خرداد', - 'تیر', - 'مرداد', - 'شهریور', - 'مهر', - 'آبان', - 'آذر', - 'دی', - 'بهمن', - 'اسفند', - ], + abbr: [ 'فرو', 'ارد', @@ -41,18 +28,4 @@ export default { 'بهم', 'اسف', ], - abbr_context: [ - 'فرو', - 'ارد', - 'خرد', - 'تیر', - 'مرد', - 'شهر', - 'مهر', - 'آبا', - 'آذر', - 'دی', - 'بهم', - 'اسف', - ], }; diff --git a/src/locales/fa/date/weekday.ts b/src/locales/fa/date/weekday.ts index c30f688462b..a8427b52642 100644 --- a/src/locales/fa/date/weekday.ts +++ b/src/locales/fa/date/weekday.ts @@ -1,14 +1,5 @@ export default { wide: ['شنبه', 'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پتچشنبه', 'جمعه'], - wide_context: [ - 'شنبه', - 'یکشنبه', - 'دوشنبه', - 'سه شنبه', - 'چهارشنبه', - 'پتچشنبه', - 'جمعه', - ], + abbr: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'], - abbr_context: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'], }; diff --git a/src/locales/fr/date/month.ts b/src/locales/fr/date/month.ts index 7edba9e8ea1..a3d77d291a5 100644 --- a/src/locales/fr/date/month.ts +++ b/src/locales/fr/date/month.ts @@ -43,20 +43,4 @@ export default { 'nov.', 'déc.', ], - // 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: [ - 'janv.', - 'févr.', - 'mars', - 'avril', - 'mai', - 'juin', - 'juil.', - 'août', - 'sept.', - 'oct.', - 'nov.', - 'déc.', - ], }; diff --git a/src/locales/fr_CH/date/month.ts b/src/locales/fr_CH/date/month.ts index 7edba9e8ea1..a3d77d291a5 100644 --- a/src/locales/fr_CH/date/month.ts +++ b/src/locales/fr_CH/date/month.ts @@ -43,20 +43,4 @@ export default { 'nov.', 'déc.', ], - // 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: [ - 'janv.', - 'févr.', - 'mars', - 'avril', - 'mai', - 'juin', - 'juil.', - 'août', - 'sept.', - 'oct.', - 'nov.', - 'déc.', - ], }; diff --git a/src/locales/he/date/month.ts b/src/locales/he/date/month.ts index dce72267503..64f530eba7e 100644 --- a/src/locales/he/date/month.ts +++ b/src/locales/he/date/month.ts @@ -13,22 +13,7 @@ export default { 'נובמבר', 'דצמבר', ], - // 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: [ 'Jan', 'Feb', @@ -43,20 +28,4 @@ export default { 'Nov', 'Dec', ], - // 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: [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec', - ], }; diff --git a/src/locales/he/date/weekday.ts b/src/locales/he/date/weekday.ts index 8f2defd1acc..9603396503d 100644 --- a/src/locales/he/date/weekday.ts +++ b/src/locales/he/date/weekday.ts @@ -8,27 +8,6 @@ export default { 'יום שישי', 'שבת', ], - // 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/src/locales/hr/date/month.ts b/src/locales/hr/date/month.ts index 2a0ab6a4b40..5cf4487dc29 100644 --- a/src/locales/hr/date/month.ts +++ b/src/locales/hr/date/month.ts @@ -13,22 +13,7 @@ export default { 'studeni', 'prosinac', ], - // 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: [ - 'siječanj', - 'veljača', - 'ožujak', - 'travanj', - 'svibanj', - 'lipanj', - 'srpanj', - 'kolovoz', - 'rujan', - 'listopad', - 'studeni', - 'prosinac', - ], + abbr: [ 'sij', 'vel', @@ -43,20 +28,4 @@ export default { 'stu', 'pro', ], - // 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: [ - 'sij', - 'vel', - 'ožu', - 'tra', - 'svi', - 'lip', - 'srp', - 'kol', - 'ruj', - 'lis', - 'stu', - 'pro', - ], }; diff --git a/src/locales/hr/date/weekday.ts b/src/locales/hr/date/weekday.ts index ad34f674f22..e264dd15a41 100644 --- a/src/locales/hr/date/weekday.ts +++ b/src/locales/hr/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'petak', 'subota', ], - // 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: [ - 'nedjelja', - 'ponedjeljak', - 'utorak', - 'srijeda', - 'četvrtak', - 'petak', - 'subota', - ], + abbr: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], - // 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: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], }; diff --git a/src/locales/hu/date/month.ts b/src/locales/hu/date/month.ts index 65734ea5423..14d0ee05666 100644 --- a/src/locales/hu/date/month.ts +++ b/src/locales/hu/date/month.ts @@ -13,22 +13,7 @@ export default { 'november', 'december', ], - // 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: [ - 'január', - 'február', - 'március', - 'április', - 'május', - 'június', - 'július', - 'augusztus', - 'szeptember', - 'október', - 'november', - 'december', - ], + abbr: [ 'jan.', 'febr.', @@ -43,20 +28,4 @@ export default { 'nov.', 'dec.', ], - // 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: [ - 'jan.', - 'febr.', - 'márc.', - 'ápr.', - 'máj.', - 'jún.', - 'júl.', - 'aug.', - 'szept.', - 'okt.', - 'nov.', - 'dec.', - ], }; diff --git a/src/locales/hu/date/weekday.ts b/src/locales/hu/date/weekday.ts index 24e051caace..ca2aa451ff6 100644 --- a/src/locales/hu/date/weekday.ts +++ b/src/locales/hu/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'szombat', 'vasárnap', ], - // 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: [ - 'hétfő', - 'kedd', - 'szerda', - 'csütörtök', - 'péntek', - 'szombat', - 'vasárnap', - ], + abbr: ['Hé', 'Ke', 'Sze', 'Csüt', 'Pé', 'Szo', 'Va'], - // 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: ['Hé', 'Ke', 'Sze', 'Csüt', 'Pé', 'Szo', 'Va'], }; diff --git a/src/locales/id_ID/date/month.ts b/src/locales/id_ID/date/month.ts index b5531ca7488..6a34308b020 100644 --- a/src/locales/id_ID/date/month.ts +++ b/src/locales/id_ID/date/month.ts @@ -13,20 +13,7 @@ export default { 'November', 'Desember', ], - wide_context: [ - 'Januari', - 'Februari', - 'Maret', - 'April', - 'Mei', - 'Juni', - 'Juli', - 'Agustus', - 'September', - 'Oktober', - 'November', - 'Desember', - ], + abbr: [ 'Jan', 'Feb', @@ -41,18 +28,4 @@ export default { 'Nov', 'Des', ], - abbr_context: [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'Mei', - 'Jun', - 'Jul', - 'Ags', - 'Sep', - 'Okt', - 'Nov', - 'Des', - ], }; diff --git a/src/locales/id_ID/date/weekday.ts b/src/locales/id_ID/date/weekday.ts index e96999da1cc..5a13f537332 100644 --- a/src/locales/id_ID/date/weekday.ts +++ b/src/locales/id_ID/date/weekday.ts @@ -1,14 +1,5 @@ export default { wide: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'], - wide_context: [ - 'Minggu', - 'Senin', - 'Selasa', - 'Rabu', - 'Kamis', - 'Jumat', - 'Sabtu', - ], + abbr: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], - abbr_context: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], }; diff --git a/src/locales/ko/date/month.ts b/src/locales/ko/date/month.ts index c5ba13e56a9..500c01f4f8d 100644 --- a/src/locales/ko/date/month.ts +++ b/src/locales/ko/date/month.ts @@ -13,9 +13,6 @@ export default { '11월', '12월', ], - // 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: [ '1월', '2월', @@ -30,7 +27,4 @@ export default { '11월', '12월', ], - // 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/src/locales/ko/date/weekday.ts b/src/locales/ko/date/weekday.ts index ad46f425754..af329d64713 100644 --- a/src/locales/ko/date/weekday.ts +++ b/src/locales/ko/date/weekday.ts @@ -1,10 +1,4 @@ export default { 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/src/locales/mk/date/month.ts b/src/locales/mk/date/month.ts index bfd7f911803..34631ccc53c 100644 --- a/src/locales/mk/date/month.ts +++ b/src/locales/mk/date/month.ts @@ -13,22 +13,7 @@ export default { 'ноември', 'декември', ], - // 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: [ 'јан', 'фев', @@ -43,20 +28,4 @@ export default { 'ное', 'дек', ], - // 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/src/locales/mk/date/weekday.ts b/src/locales/mk/date/weekday.ts index 1c0e35bf9a7..cd829ec64e6 100644 --- a/src/locales/mk/date/weekday.ts +++ b/src/locales/mk/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'петок', 'сабота', ], - // 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/src/locales/nl/date/month.ts b/src/locales/nl/date/month.ts index 131b7574c6c..4fbd01e574f 100644 --- a/src/locales/nl/date/month.ts +++ b/src/locales/nl/date/month.ts @@ -13,22 +13,7 @@ export default { 'november', 'december', ], - // 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: [ - 'januari', - 'februari', - 'maart', - 'april', - 'mei', - 'juni', - 'juli', - 'augustus', - 'september', - 'oktober', - 'november', - 'december', - ], + abbr: [ 'jan', 'feb', @@ -43,20 +28,4 @@ export default { 'nov', 'dec', ], - // 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: [ - 'jan', - 'feb', - 'mrt', - 'apr', - 'mei', - 'jun', - 'jul', - 'aug', - 'sep', - 'okt', - 'nov', - 'dec', - ], }; diff --git a/src/locales/nl/date/weekday.ts b/src/locales/nl/date/weekday.ts index 42330684a7f..cef3ba7f017 100644 --- a/src/locales/nl/date/weekday.ts +++ b/src/locales/nl/date/weekday.ts @@ -8,19 +8,6 @@ export default { 'vrijdag', 'zaterdag', ], - // 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: [ - 'zondag', - 'maandag', - 'dinsdag', - 'woensdag', - 'donderdag', - 'vrijdag', - 'zaterdag', - ], + abbr: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], - // 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: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], }; diff --git a/src/locales/pt_BR/date/month.ts b/src/locales/pt_BR/date/month.ts index 47b3157950e..f2d4bd4bec8 100644 --- a/src/locales/pt_BR/date/month.ts +++ b/src/locales/pt_BR/date/month.ts @@ -13,22 +13,7 @@ export default { 'Novembro', 'Dezembro', ], - // 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: [ - 'Janeiro', - 'Fevereiro', - 'Março', - 'Abril', - 'Maio', - 'Junho', - 'Julho', - 'Agosto', - 'Setembro', - 'Outubro', - 'Novembro', - 'Dezembro', - ], + abbr: [ 'Jan', 'Fev', @@ -43,20 +28,4 @@ export default { 'Nov', 'Dez', ], - // 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: [ - 'Jan', - 'Fev', - 'Mar', - 'Abr', - 'Mai', - 'Jun', - 'Jul', - 'Ago', - 'Set', - 'Out', - 'Nov', - 'Dez', - ], }; diff --git a/src/locales/pt_BR/date/weekday.ts b/src/locales/pt_BR/date/weekday.ts index e7d5069f3cb..b56f75e4a2a 100644 --- a/src/locales/pt_BR/date/weekday.ts +++ b/src/locales/pt_BR/date/weekday.ts @@ -1,18 +1,5 @@ export default { wide: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'], - // 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: [ - 'Domingo', - 'Segunda', - 'Terça', - 'Quarta', - 'Quinta', - 'Sexta', - 'Sábado', - ], + abbr: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], - // 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: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], }; diff --git a/src/locales/ro/date/month.ts b/src/locales/ro/date/month.ts index 68adc7c8e23..1f059af3534 100644 --- a/src/locales/ro/date/month.ts +++ b/src/locales/ro/date/month.ts @@ -13,22 +13,7 @@ export default { 'Noiembrie', 'Decembrie', ], - // 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: [ - 'Ianuarie', - 'Februarie', - 'Martie', - 'Aprilie', - 'Mai', - 'Iunie', - 'Iulie', - 'August', - 'Septembrie', - 'Octombrie', - 'Noiembrie', - 'Decembrie', - ], + abbr: [ 'Ian', 'Feb', @@ -43,20 +28,4 @@ export default { 'Noi', 'Dec', ], - // 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: [ - 'Ian', - 'Feb', - 'Mar', - 'Apr', - 'Mai', - 'Iun', - 'Iul', - 'Aug', - 'Sep', - 'Oct', - 'Noi', - 'Dec', - ], }; diff --git a/src/locales/ro/date/weekday.ts b/src/locales/ro/date/weekday.ts index ae91f4f0b15..895c8636c0c 100644 --- a/src/locales/ro/date/weekday.ts +++ b/src/locales/ro/date/weekday.ts @@ -1,26 +1,5 @@ export default { wide: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'], - // 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: [ - 'Luni', - 'Marți', - 'Miercuri', - 'Joi', - 'Vineri', - 'Sâmbătă', - 'Duminică', - ], + abbr: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'], - // 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: [ - 'Luni', - 'Marți', - 'Miercuri', - 'Joi', - 'Vineri', - 'Sâmbătă', - 'Duminică', - ], }; diff --git a/src/locales/ur/date/month.ts b/src/locales/ur/date/month.ts index 98df66f094f..3edd0356366 100644 --- a/src/locales/ur/date/month.ts +++ b/src/locales/ur/date/month.ts @@ -15,18 +15,4 @@ export default { 'نومبر', 'دسمبر', ], - wide_context: [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئ', - 'جون', - 'جولائ', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر', - ], } as DateEntryDefinition; diff --git a/src/locales/ur/date/weekday.ts b/src/locales/ur/date/weekday.ts index 2df6fb2dc4b..ae8a780afd7 100644 --- a/src/locales/ur/date/weekday.ts +++ b/src/locales/ur/date/weekday.ts @@ -2,5 +2,4 @@ import type { DateEntryDefinition } from '../../../definitions'; export default { wide: ['اتور', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'], - wide_context: ['اتور', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'], } as DateEntryDefinition; diff --git a/src/locales/vi/date/month.ts b/src/locales/vi/date/month.ts index d576d56a19e..fa899d7565e 100644 --- a/src/locales/vi/date/month.ts +++ b/src/locales/vi/date/month.ts @@ -13,22 +13,6 @@ export default { 'Tháng Mười Một', 'Tháng Mười Hai', ], - // 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: [ - 'Tháng Giêng', - 'Tháng Hai', - 'Tháng Ba', - 'Tháng Tư', - 'Tháng Năm', - 'Tháng Sáu', - 'Tháng Bảy', - 'Tháng Tám', - 'Tháng Chín', - 'Tháng Mười', - 'Tháng Mười Một', - 'Tháng Mười Hai', - ], abbr: [ 'Tháng 1', 'Tháng 2', @@ -43,20 +27,4 @@ export default { 'Tháng 11', 'Tháng 12', ], - // 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: [ - 'Tháng 1', - 'Tháng 2', - 'Tháng 3', - 'Tháng 4', - 'Tháng 5', - 'Tháng 6', - 'Tháng 7', - 'Tháng 8', - 'Tháng 9', - 'Tháng 10', - 'Tháng 11', - 'Tháng 12', - ], }; diff --git a/src/locales/vi/date/weekday.ts b/src/locales/vi/date/weekday.ts index 37f8f020b0c..cd45bbbd019 100644 --- a/src/locales/vi/date/weekday.ts +++ b/src/locales/vi/date/weekday.ts @@ -8,17 +8,6 @@ export default { 'Thứ sáu', 'Thứ bảy', ], - // 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: [ - 'Chủ nhật', - 'Thứ hai', - 'Thứ ba', - 'Thứ tư', - 'Thứ năm', - 'Thứ sáu', - 'Thứ bảy', - ], abbr: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], // 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 diff --git a/test/date.spec.ts b/test/date.spec.ts index 8133bc0ec79..7ed18f4732a 100644 --- a/test/date.spec.ts +++ b/test/date.spec.ts @@ -1,5 +1,5 @@ import { afterEach, describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../src'; +import { faker, fakerAZ, FakerError } from '../src'; import { seededTests } from './support/seededRuns'; const converterMap = [ @@ -434,8 +434,9 @@ describe('date', () => { }); it('should return random value from date.month.wide_context array for context option', () => { - const month = faker.date.month({ context: true }); - expect(faker.definitions.date.month.wide_context).toContain(month); + // Use a locale which has a wide_context array + const month = fakerAZ.date.month({ context: true }); + expect(fakerAZ.definitions.date.month.wide_context).toContain(month); }); it('should return random value from date.month.abbr array for abbr option', () => { @@ -444,28 +445,21 @@ describe('date', () => { }); it('should return random value from date.month.abbr_context array for abbr and context option', () => { - const month = faker.date.month({ abbr: true, context: true }); - expect(faker.definitions.date.month.abbr_context).toContain(month); + // Use a locale (e.g. az) which has a wide_context array + const month = fakerAZ.date.month({ abbr: true, context: true }); + expect(fakerAZ.definitions.date.month.abbr_context).toContain(month); }); it('should return random value from date.month.wide array for context option when date.month.wide_context array is missing', () => { - const backup_wide_context = faker.definitions.date.month.wide_context; - faker.definitions.date.month.wide_context = undefined; - + // Use a locale (e.g. the default en) which has no wide_context array const month = faker.date.month({ context: true }); expect(faker.definitions.date.month.wide).toContain(month); - - faker.definitions.date.month.wide_context = backup_wide_context; }); it('should return random value from date.month.abbr array for abbr and context option when date.month.abbr_context array is missing', () => { - const backup_abbr_context = faker.definitions.date.month.abbr_context; - faker.definitions.date.month.abbr_context = undefined; - + // Use a locale (e.g. the default en) which has no abbr_context array const month = faker.date.month({ abbr: true, context: true }); expect(faker.definitions.date.month.abbr).toContain(month); - - faker.definitions.date.month.abbr_context = backup_abbr_context; }); }); @@ -476,8 +470,9 @@ describe('date', () => { }); it('should return random value from date.weekday.wide_context array for context option', () => { - const weekday = faker.date.weekday({ context: true }); - expect(faker.definitions.date.weekday.wide_context).toContain( + // Use a locale (e.g. az) which has a wide_context array + const weekday = fakerAZ.date.weekday({ context: true }); + expect(fakerAZ.definitions.date.weekday.wide_context).toContain( weekday ); }); @@ -488,32 +483,23 @@ describe('date', () => { }); it('should return random value from date.weekday.abbr_context array for abbr and context option', () => { - const weekday = faker.date.weekday({ abbr: true, context: true }); - expect(faker.definitions.date.weekday.abbr_context).toContain( + // Use a locale (e.g. az) which has a abbr_context array + const weekday = fakerAZ.date.weekday({ abbr: true, context: true }); + expect(fakerAZ.definitions.date.weekday.abbr_context).toContain( weekday ); }); it('should return random value from date.weekday.wide array for context option when date.weekday.wide_context array is missing', () => { - const backup_wide_context = - faker.definitions.date.weekday.wide_context; - faker.definitions.date.weekday.wide_context = undefined; - + // Use a locale (e.g. the default en) which has no wide_context array const weekday = faker.date.weekday({ context: true }); expect(faker.definitions.date.weekday.wide).toContain(weekday); - - faker.definitions.date.weekday.wide_context = backup_wide_context; }); it('should return random value from date.weekday.abbr array for abbr and context option when date.weekday.abbr_context array is missing', () => { - const backup_abbr_context = - faker.definitions.date.weekday.abbr_context; - faker.definitions.date.weekday.abbr_context = undefined; - + // Use a locale (e.g. the default en) which has no abbr_context array const weekday = faker.date.weekday({ abbr: true, context: true }); expect(faker.definitions.date.weekday.abbr).toContain(weekday); - - faker.definitions.date.weekday.abbr_context = backup_abbr_context; }); });