Skip to content

Commit c2b21d8

Browse files
author
Matt Mayer
authored
refactor(date): remove duplicate context of date definitions (#1915)
1 parent a001090 commit c2b21d8

35 files changed

+42
-727
lines changed

src/locales/ar/date/month.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@ export default {
1313
'تِشْرِين ٱلثَّانِي',
1414
'كَانُون ٱلْأَوَّل',
1515
],
16-
// Property "wide_context" is optional, if not set then "wide" will be used instead
17-
// It is used to specify a word in context, which may differ from a stand-alone word
18-
wide_context: [
19-
'كَانُون ٱلثَّانِي',
20-
'شُبَاط',
21-
'آذَار',
22-
'نَيْسَان',
23-
'أَيَّار',
24-
'حَزِيرَان',
25-
'تَمُّوز',
26-
'آب',
27-
'أَيْلُول',
28-
'تِشْرِين ٱلْأَوَّل',
29-
'تِشْرِين ٱلثَّانِي',
30-
'كَانُون ٱلْأَوَّل',
31-
],
16+
3217
abbr: [
3318
'يناير',
3419
'فبراير',
@@ -43,20 +28,4 @@ export default {
4328
'نوفمبر',
4429
'ديسمبر',
4530
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'يناير',
50-
'فبراير',
51-
'مارس',
52-
'إبريل',
53-
'مايو',
54-
'يونيو',
55-
'يوليو',
56-
'أغسطس',
57-
'سبتمبر',
58-
'أكتوبر',
59-
'نوفمبر',
60-
'ديسمبر',
61-
],
6231
};

src/locales/ar/date/weekday.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,4 @@ export default {
1010
'الجمعة',
1111
'السبت',
1212
],
13-
14-
wide_context: [
15-
'الأحَد',
16-
'الإثنين',
17-
'الثلاثاء',
18-
'الأربعاء',
19-
'الخميس',
20-
'الجمعة',
21-
'السبت',
22-
],
2313
} as DateEntryDefinition;

src/locales/cz/date/month.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@ export default {
1313
'Listopad',
1414
'Prosinec',
1515
],
16-
// Property "wide_context" is optional, if not set then "wide" will be used instead
17-
// It is used to specify a word in context, which may differ from a stand-alone word
18-
wide_context: [
19-
'Leden',
20-
'Únor',
21-
'Březen',
22-
'Duben',
23-
'Květen',
24-
'Červen',
25-
'Červenec',
26-
'Srpen',
27-
'Září',
28-
'Říjen',
29-
'Listopad',
30-
'Prosinec',
31-
],
16+
3217
abbr: [
3318
'Led',
3419
'Úno',
@@ -43,20 +28,4 @@ export default {
4328
'Lis',
4429
'Pro',
4530
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'Led',
50-
'Úno',
51-
'Bře',
52-
'Dub',
53-
'Kvě',
54-
'Čer',
55-
'Črc',
56-
'Srp',
57-
'Zář',
58-
'Říj',
59-
'Lis',
60-
'Pro',
61-
],
6231
};

src/locales/cz/date/weekday.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
export default {
22
wide: ['Pondělí', 'Úterý', 'Středa', 'čtvrtek', 'Pátek', 'Sobota', 'Neděle'],
3-
// Property "wide_context" is optional, if not set then "wide" will be used instead
4-
// It is used to specify a word in context, which may differ from a stand-alone word
5-
wide_context: [
6-
'Pondělí',
7-
'Úterý',
8-
'Středa',
9-
'čtvrtek',
10-
'Pátek',
11-
'Sobota',
12-
'Neděle',
13-
],
3+
144
abbr: ['Po', 'Út', 'St', 'čt', 'Pá', 'So', 'Ne'],
15-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
16-
// It is used to specify a word in context, which may differ from a stand-alone word
17-
abbr_context: ['Po', 'Út', 'St', 'čt', 'Pá', 'So', 'Ne'],
185
};

src/locales/de/date/month.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@ export default {
1313
'November',
1414
'Dezember',
1515
],
16-
// Property "wide_context" is optional, if not set then "wide" will be used instead
17-
// It is used to specify a word in context, which may differ from a stand-alone word
18-
wide_context: [
19-
'Januar',
20-
'Februar',
21-
'März',
22-
'April',
23-
'Mai',
24-
'Juni',
25-
'Juli',
26-
'August',
27-
'September',
28-
'Oktober',
29-
'November',
30-
'Dezember',
31-
],
16+
3217
abbr: [
3318
'Jan',
3419
'Feb',
@@ -43,20 +28,4 @@ export default {
4328
'Nov',
4429
'Dez',
4530
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'Jan',
50-
'Feb',
51-
'Mrz',
52-
'Apr',
53-
'Mai',
54-
'Jun',
55-
'Jul',
56-
'Aug',
57-
'Sep',
58-
'Okt',
59-
'Nov',
60-
'Dez',
61-
],
6231
};

src/locales/de/date/weekday.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ export default {
88
'Freitag',
99
'Samstag',
1010
],
11-
// Property "wide_context" is optional, if not set then "wide" will be used instead
12-
// It is used to specify a word in context, which may differ from a stand-alone word
13-
wide_context: [
14-
'Sonntag',
15-
'Montag',
16-
'Dienstag',
17-
'Mittwoch',
18-
'Donnerstag',
19-
'Freitag',
20-
'Samstag',
21-
],
11+
2212
abbr: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],
23-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
24-
// It is used to specify a word in context, which may differ from a stand-alone word
25-
abbr_context: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],
2613
};

src/locales/en/date/month.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@ export default {
1313
'November',
1414
'December',
1515
],
16-
// Property "wide_context" is optional, if not set then "wide" will be used instead
17-
// It is used to specify a word in context, which may differ from a stand-alone word
18-
wide_context: [
19-
'January',
20-
'February',
21-
'March',
22-
'April',
23-
'May',
24-
'June',
25-
'July',
26-
'August',
27-
'September',
28-
'October',
29-
'November',
30-
'December',
31-
],
16+
3217
abbr: [
3318
'Jan',
3419
'Feb',
@@ -43,20 +28,4 @@ export default {
4328
'Nov',
4429
'Dec',
4530
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'Jan',
50-
'Feb',
51-
'Mar',
52-
'Apr',
53-
'May',
54-
'Jun',
55-
'Jul',
56-
'Aug',
57-
'Sep',
58-
'Oct',
59-
'Nov',
60-
'Dec',
61-
],
6231
};

src/locales/en/date/weekday.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ export default {
88
'Friday',
99
'Saturday',
1010
],
11-
// Property "wide_context" is optional, if not set then "wide" will be used instead
12-
// It is used to specify a word in context, which may differ from a stand-alone word
13-
wide_context: [
14-
'Sunday',
15-
'Monday',
16-
'Tuesday',
17-
'Wednesday',
18-
'Thursday',
19-
'Friday',
20-
'Saturday',
21-
],
11+
2212
abbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
23-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
24-
// It is used to specify a word in context, which may differ from a stand-alone word
25-
abbr_context: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
2613
};

src/locales/fa/date/month.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,7 @@ export default {
1313
'بهمن',
1414
'اسفند',
1515
],
16-
wide_context: [
17-
'فروردین',
18-
'اردیبهشت',
19-
'خرداد',
20-
'تیر',
21-
'مرداد',
22-
'شهریور',
23-
'مهر',
24-
'آبان',
25-
'آذر',
26-
'دی',
27-
'بهمن',
28-
'اسفند',
29-
],
16+
3017
abbr: [
3118
'فرو',
3219
'ارد',
@@ -41,18 +28,4 @@ export default {
4128
'بهم',
4229
'اسف',
4330
],
44-
abbr_context: [
45-
'فرو',
46-
'ارد',
47-
'خرد',
48-
'تیر',
49-
'مرد',
50-
'شهر',
51-
'مهر',
52-
'آبا',
53-
'آذر',
54-
'دی',
55-
'بهم',
56-
'اسف',
57-
],
5831
};

src/locales/fa/date/weekday.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
export default {
22
wide: ['شنبه', 'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پتچشنبه', 'جمعه'],
3-
wide_context: [
4-
'شنبه',
5-
'یکشنبه',
6-
'دوشنبه',
7-
'سه شنبه',
8-
'چهارشنبه',
9-
'پتچشنبه',
10-
'جمعه',
11-
],
3+
124
abbr: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'],
13-
abbr_context: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'],
145
};

src/locales/fr/date/month.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,4 @@ export default {
4343
'nov.',
4444
'déc.',
4545
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'janv.',
50-
'févr.',
51-
'mars',
52-
'avril',
53-
'mai',
54-
'juin',
55-
'juil.',
56-
'août',
57-
'sept.',
58-
'oct.',
59-
'nov.',
60-
'déc.',
61-
],
6246
};

src/locales/fr_CH/date/month.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,4 @@ export default {
4343
'nov.',
4444
'déc.',
4545
],
46-
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
47-
// It is used to specify a word in context, which may differ from a stand-alone word
48-
abbr_context: [
49-
'janv.',
50-
'févr.',
51-
'mars',
52-
'avril',
53-
'mai',
54-
'juin',
55-
'juil.',
56-
'août',
57-
'sept.',
58-
'oct.',
59-
'nov.',
60-
'déc.',
61-
],
6246
};

0 commit comments

Comments
 (0)