Skip to content

Commit

Permalink
refactor(date): remove duplicate context of date definitions (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mayer authored Mar 14, 2023
1 parent a001090 commit c2b21d8
Show file tree
Hide file tree
Showing 35 changed files with 42 additions and 727 deletions.
33 changes: 1 addition & 32 deletions src/locales/ar/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
'يناير',
'فبراير',
Expand All @@ -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: [
'يناير',
'فبراير',
'مارس',
'إبريل',
'مايو',
'يونيو',
'يوليو',
'أغسطس',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
],
};
10 changes: 0 additions & 10 deletions src/locales/ar/date/weekday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,4 @@ export default {
'الجمعة',
'السبت',
],

wide_context: [
'الأحَد',
'الإثنين',
'الثلاثاء',
'الأربعاء',
'الخميس',
'الجمعة',
'السبت',
],
} as DateEntryDefinition;
33 changes: 1 addition & 32 deletions src/locales/cz/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
],
};
15 changes: 1 addition & 14 deletions src/locales/cz/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -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'],
};
33 changes: 1 addition & 32 deletions src/locales/de/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
],
};
15 changes: 1 addition & 14 deletions src/locales/de/date/weekday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'],
};
33 changes: 1 addition & 32 deletions src/locales/en/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
],
};
15 changes: 1 addition & 14 deletions src/locales/en/date/weekday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
};
29 changes: 1 addition & 28 deletions src/locales/fa/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,7 @@ export default {
'بهمن',
'اسفند',
],
wide_context: [
'فروردین',
'اردیبهشت',
'خرداد',
'تیر',
'مرداد',
'شهریور',
'مهر',
'آبان',
'آذر',
'دی',
'بهمن',
'اسفند',
],

abbr: [
'فرو',
'ارد',
Expand All @@ -41,18 +28,4 @@ export default {
'بهم',
'اسف',
],
abbr_context: [
'فرو',
'ارد',
'خرد',
'تیر',
'مرد',
'شهر',
'مهر',
'آبا',
'آذر',
'دی',
'بهم',
'اسف',
],
};
11 changes: 1 addition & 10 deletions src/locales/fa/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
export default {
wide: ['شنبه', 'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پتچشنبه', 'جمعه'],
wide_context: [
'شنبه',
'یکشنبه',
'دوشنبه',
'سه شنبه',
'چهارشنبه',
'پتچشنبه',
'جمعه',
],

abbr: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'],
abbr_context: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'],
};
16 changes: 0 additions & 16 deletions src/locales/fr/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
],
};
16 changes: 0 additions & 16 deletions src/locales/fr_CH/date/month.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
],
};
Loading

0 comments on commit c2b21d8

Please sign in to comment.