]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] (sw) Improve Translation (#5546)
authorFahad Kassim <educatedfahad@gmail.com>
Tue, 19 May 2020 10:45:08 +0000 (13:45 +0300)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 10:45:08 +0000 (03:45 -0700)
* [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

src/locale/sw.js
src/test/locale/sw.js

index fb2406f8d24a8a5103c326da5a67abf6792ea933..89ee91676b1dc240b7f7e9f026bba46192d916f2 100644 (file)
@@ -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',
index fca98a0774f49fe58e829032afbd2142e95f61bb..71a58a07b9d853320cb6cfd7168099d0f3994dff 100644 (file)
@@ -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'
     );
 });