From: Fahad Kassim Date: Tue, 19 May 2020 10:45:08 +0000 (+0300) Subject: [locale] (sw) Improve Translation (#5546) X-Git-Tag: 2.26.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c3164190e73bd4b276fab965e491e250af0e75;p=thirdparty%2Fmoment.git [locale] (sw) Improve Translation (#5546) * [locale] (sw) Improve Translation It appears that "masiku" does not usually have a plural , going back to "siku" , Other propositions from https://github.com/moment/moment/pull/5544 sounds a bit nice and native, But, sadly we cannot have them since they are likely to change on future Relative Time , so it is better if they stay that way * [locale] (sw) Improve Translation In Tests This is so that the Travis CI builds https://github.com/moment/moment/pull/5546/commits --- diff --git a/src/locale/sw.js b/src/locale/sw.js index fb2406f8d..89ee91676 100644 --- a/src/locale/sw.js +++ b/src/locale/sw.js @@ -41,7 +41,7 @@ export default moment.defineLocale('sw', { h: 'saa limoja', hh: 'masaa %d', d: 'siku moja', - dd: 'masiku %d', + dd: 'siku %d', M: 'mwezi mmoja', MM: 'miezi %d', y: 'mwaka mmoja', diff --git a/src/test/locale/sw.js b/src/test/locale/sw.js index fca98a077..71a58a07b 100644 --- a/src/test/locale/sw.js +++ b/src/test/locale/sw.js @@ -209,7 +209,7 @@ test('from', function (assert) { ); assert.equal( start.from(moment([2007, 1, 28]).add({ h: 36 }), true), - 'masiku 2', + 'siku 2', '36 hours = 2 days' ); assert.equal( @@ -219,12 +219,12 @@ test('from', function (assert) { ); assert.equal( start.from(moment([2007, 1, 28]).add({ d: 5 }), true), - 'masiku 5', + 'siku 5', '5 days = 5 days' ); assert.equal( start.from(moment([2007, 1, 28]).add({ d: 25 }), true), - 'masiku 25', + 'siku 25', '25 days = 25 days' ); assert.equal( @@ -310,7 +310,7 @@ test('fromNow', function (assert) { ); assert.equal( moment().add({ d: 5 }).fromNow(), - 'masiku 5 baadaye', + 'siku 5 baadaye', 'in 5 days' ); });