Skip to content

Commit

Permalink
[locale] Fix #4568: Insert punjabi for "next" (#4583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashsearle authored and marwahaha committed Apr 29, 2018
1 parent 89b58e6 commit 3062ca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/locale/pa-in.js
Expand Up @@ -47,7 +47,7 @@ export default moment.defineLocale('pa-in', {
calendar : {
sameDay : '[ਅਜ] LT',
nextDay : '[ਕਲ] LT',
nextWeek : 'dddd, LT',
nextWeek : '[ਅਗਲਾ] dddd, LT',
lastDay : '[ਕਲ] LT',
lastWeek : '[ਪਿਛਲੇ] dddd, LT',
sameElse : 'L'
Expand Down
6 changes: 3 additions & 3 deletions src/test/locale/pa-in.js
Expand Up @@ -165,11 +165,11 @@ test('calendar next week', function (assert) {
var i, m;
for (i = 2; i < 7; i++) {
m = moment().add({d: i});
assert.equal(m.calendar(), m.format('dddd[,] LT'), 'Today + ' + i + ' days current time');
assert.equal(m.calendar(), m.format('[ਅਗਲਾ] dddd[,] LT'), 'Today + ' + i + ' days current time');
m.hours(0).minutes(0).seconds(0).milliseconds(0);
assert.equal(m.calendar(), m.format('dddd[,] LT'), 'Today + ' + i + ' days beginning of day');
assert.equal(m.calendar(), m.format('[ਅਗਲਾ] dddd[,] LT'), 'Today + ' + i + ' days beginning of day');
m.hours(23).minutes(59).seconds(59).milliseconds(999);
assert.equal(m.calendar(), m.format('dddd[,] LT'), 'Today + ' + i + ' days end of day');
assert.equal(m.calendar(), m.format('[ਅਗਲਾ] dddd[,] LT'), 'Today + ' + i + ' days end of day');
}
});

Expand Down

0 comments on commit 3062ca1

Please sign in to comment.