]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] (sw) Changed LT to include meridiem (#5561)
authorFahad Kassim <fahad@yoteyote.com>
Fri, 22 May 2020 12:35:28 +0000 (15:35 +0300)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 12:35:28 +0000 (05:35 -0700)
src/locale/sw.js
src/test/locale/sw.js

index 89ee91676b1dc240b7f7e9f026bba46192d916f2..cb46db4d19e09ff3e3e38851c8a86a4cf51e4580 100644 (file)
@@ -16,7 +16,7 @@ export default moment.defineLocale('sw', {
     weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
     weekdaysParseExact: true,
     longDateFormat: {
-        LT: 'HH:mm',
+        LT: 'hh:mm A',
         LTS: 'HH:mm:ss',
         L: 'DD.MM.YYYY',
         LL: 'D MMMM YYYY',
index 71a58a07b9d853320cb6cfd7168099d0f3994dff..c79b77aecd98314818c74410e613f9488ce0a45a 100644 (file)
@@ -319,32 +319,32 @@ test('calendar day', function (assert) {
     var a = moment().hours(12).minutes(0).seconds(0);
     assert.equal(
         moment(a).calendar(),
-        'leo saa 12:00',
+        'leo saa 12:00 PM',
         'today at the same time'
     );
     assert.equal(
         moment(a).add({ m: 25 }).calendar(),
-        'leo saa 12:25',
+        'leo saa 12:25 PM',
         'Now plus 25 min'
     );
     assert.equal(
         moment(a).add({ h: 1 }).calendar(),
-        'leo saa 13:00',
+        'leo saa 01:00 PM',
         'Now plus 1 hour'
     );
     assert.equal(
         moment(a).add({ d: 1 }).calendar(),
-        'kesho saa 12:00',
+        'kesho saa 12:00 PM',
         'tomorrow at the same time'
     );
     assert.equal(
         moment(a).subtract({ h: 1 }).calendar(),
-        'leo saa 11:00',
+        'leo saa 11:00 AM',
         'Now minus 1 hour'
     );
     assert.equal(
         moment(a).subtract({ d: 1 }).calendar(),
-        'jana 12:00',
+        'jana 12:00 PM',
         'yesterday at the same time'
     );
 });