]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] Fix #4568: Insert punjabi for "next" (#4583)
authorAsh <ash@hexmen.com>
Sun, 29 Apr 2018 20:42:28 +0000 (21:42 +0100)
committerKunal Marwaha <marwahaha@berkeley.edu>
Fri, 1 Jun 2018 05:36:18 +0000 (22:36 -0700)
src/locale/pa-in.js
src/test/locale/pa-in.js

index 50825e0a4e10beeddf4d5948c6350c66929755ed..6b8535094313bff871bbd07ba9ca738066c0b965 100644 (file)
@@ -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'
index 1c03a82914ed8673bf07d9aee49df730a4240694..594553a886faece1f5df552016e413fc07377e3f 100644 (file)
@@ -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');
     }
 });