Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[locale] Update dow for Konkani locales #5676

Merged
merged 6 commits into from
Sep 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/locale/gom-deva.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export default moment.defineLocale('gom-deva', {
}
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
dow: 0, // Sunday is the first day of the week
doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
},
meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
meridiemHour: function (hour, meridiem) {
Expand Down
4 changes: 2 additions & 2 deletions src/locale/gom-latn.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export default moment.defineLocale('gom-latn', {
}
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
dow: 0, // Sunday is the first day of the week
doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
},
meridiemParse: /rati|sokallim|donparam|sanje/,
meridiemHour: function (hour, meridiem) {
Expand Down
14 changes: 7 additions & 7 deletions src/test/locale/gom-deva.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('format', function (assert) {
['D Do DD', '14 14वेर 14'],
['d do dddd ddd dd', '0 0 आयतार आयत. आ'],
['DDD DDDo DDDD', '45 45 045'],
['w wo ww', '6 6 06'],
['w wo ww', '7 7 07'],
['h hh', '3 03'],
['H HH', '15 15'],
['m mm', '25 25'],
Expand Down Expand Up @@ -419,8 +419,8 @@ test('calendar all else', function (assert) {
test('weeks year starting sunday format', function (assert) {
assert.equal(
moment([2012, 0, 1]).format('w ww wo'),
'52 52 52',
'Jan 1 2012 should be week 52'
'1 01 1',
'Jan 1 2012 should be week 1'
);
assert.equal(
moment([2012, 0, 2]).format('w ww wo'),
Expand All @@ -429,8 +429,8 @@ test('weeks year starting sunday format', function (assert) {
);
assert.equal(
moment([2012, 0, 8]).format('w ww wo'),
'1 01 1',
'Jan 8 2012 should be week 1'
'2 02 2',
'Jan 8 2012 should be week 2'
);
assert.equal(
moment([2012, 0, 14]).format('w ww wo'),
Expand All @@ -439,7 +439,7 @@ test('weeks year starting sunday format', function (assert) {
);
assert.equal(
moment([2012, 0, 15]).format('w ww wo'),
'2 02 2',
'Jan 15 2012 should be week 2'
'3 03 3',
'Jan 15 2012 should be week 3'
);
});
14 changes: 7 additions & 7 deletions src/test/locale/gom-latn.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test('format', function (assert) {
['D Do DD', '14 14er 14'],
['d do dddd ddd dd', '0 0 Aitar Ait. Ai'],
['DDD DDDo DDDD', '45 45 045'],
['w wo ww', '6 6 06'],
['w wo ww', '7 7 07'],
['h hh', '3 03'],
['H HH', '15 15'],
['m mm', '25 25'],
Expand Down Expand Up @@ -433,8 +433,8 @@ test('calendar all else', function (assert) {
test('weeks year starting sunday format', function (assert) {
assert.equal(
moment([2012, 0, 1]).format('w ww wo'),
'52 52 52',
'Jan 1 2012 should be week 52'
'1 01 1',
'Jan 1 2012 should be week 1'
);
assert.equal(
moment([2012, 0, 2]).format('w ww wo'),
Expand All @@ -443,8 +443,8 @@ test('weeks year starting sunday format', function (assert) {
);
assert.equal(
moment([2012, 0, 8]).format('w ww wo'),
'1 01 1',
'Jan 8 2012 should be week 1'
'2 02 2',
'Jan 8 2012 should be week 2'
);
assert.equal(
moment([2012, 0, 14]).format('w ww wo'),
Expand All @@ -453,7 +453,7 @@ test('weeks year starting sunday format', function (assert) {
);
assert.equal(
moment([2012, 0, 15]).format('w ww wo'),
'2 02 2',
'Jan 15 2012 should be week 2'
'3 03 3',
'Jan 15 2012 should be week 3'
);
});