Skip to content

Commit

Permalink
[locale] (sw) Changed LT to include meridiem (#5561)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadsel committed May 22, 2020
1 parent 94ae935 commit 82d6c1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/locale/sw.js
Expand Up @@ -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',
Expand Down
12 changes: 6 additions & 6 deletions src/test/locale/sw.js
Expand Up @@ -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'
);
});
Expand Down

0 comments on commit 82d6c1a

Please sign in to comment.