]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Same length for weekdaysMin parts
authorMassimiliano Caniparoli <massic80@gmail.com>
Mon, 23 Feb 2015 16:40:00 +0000 (17:40 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 06:25:54 +0000 (22:25 -0800)
I just tried to use the short Polish names and I noticed that "min" Polish weekday names haven't the same length (six of them are two-chars long, while "sunday" corresponds to "N"). Polish colleagues say there should be one more "d".
I'd also make all "short" names 3-chars long, agree?

src/locale/pl.js
src/test/locale/pl.js

index e6a3a5a32df4328c44788ab8b718ca58a7a86ada..fde1bb2e6b35bb8810f2e68deb8ccef54628f503 100644 (file)
@@ -43,7 +43,7 @@ export default moment.defineLocale('pl', {
     monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
     weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
     weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
-    weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
+    weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
     longDateFormat : {
         LT : 'HH:mm',
         LTS : 'HH:mm:ss',
index 6db0a923f6a5a90c98cf922a353bcf74075dfea6..adff3acfe7b3902c8baa54f63dc5de7719baf85d 100644 (file)
@@ -50,7 +50,7 @@ test('format', function (assert) {
             ['M Mo MM MMMM MMM',                   '2 2. 02 luty lut'],
             ['YYYY YY',                            '2010 10'],
             ['D Do DD',                            '14 14. 14'],
-            ['d do dddd ddd dd',                   '0 0. niedziela nie N'],
+            ['d do dddd ddd dd',                   '0 0. niedziela nie Nd'],
             ['DDD DDDo DDDD',                      '45 45. 045'],
             ['w wo ww',                            '6 6. 06'],
             ['h hh',                               '3 03'],
@@ -121,7 +121,7 @@ test('format month', function (assert) {
 });
 
 test('format week', function (assert) {
-    var expected = 'niedziela nie N_poniedziałek pon Pn_wtorek wt Wt_środa śr Śr_czwartek czw Cz_piątek pt Pt_sobota sb So'.split('_'), i;
+    var expected = 'niedziela nie Nd_poniedziałek pon Pn_wtorek wt Wt_środa śr Śr_czwartek czw Cz_piątek pt Pt_sobota sb So'.split('_'), i;
     for (i = 0; i < expected.length; i++) {
         assert.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
     }