From: Kunal Marwaha Date: Tue, 17 Apr 2018 20:28:35 +0000 (-0800) Subject: [locale] az: Fix typo in seconds (#4527) X-Git-Tag: 2.22.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba77ec8196bab4067474c407f871f7612a5f421;p=thirdparty%2Fmoment.git [locale] az: Fix typo in seconds (#4527) * [locale] az: Improve relative time for seconds in src/test/locale/az.js * [locale] az: Improve relative time for seconds I hope this time I'm doing it right --- diff --git a/src/locale/az.js b/src/locale/az.js index deda41c6c..4fea428f7 100644 --- a/src/locale/az.js +++ b/src/locale/az.js @@ -51,7 +51,7 @@ export default moment.defineLocale('az', { relativeTime : { future : '%s sonra', past : '%s əvvəl', - s : 'birneçə saniyyə', + s : 'birneçə saniyə', ss : '%d saniyə', m : 'bir dəqiqə', mm : '%d dəqiqə', diff --git a/src/test/locale/az.js b/src/test/locale/az.js index c008e7f7f..f15242076 100644 --- a/src/test/locale/az.js +++ b/src/test/locale/az.js @@ -119,7 +119,7 @@ test('format week', function (assert) { test('from', function (assert) { var start = moment([2007, 1, 28]); - assert.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), 'birneçə saniyyə', '44 seconds = a few seconds'); + assert.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), 'birneçə saniyə', '44 seconds = a few seconds'); assert.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true), 'bir dəqiqə', '45 seconds = a minute'); assert.equal(start.from(moment([2007, 1, 28]).add({s: 89}), true), 'bir dəqiqə', '89 seconds = a minute'); assert.equal(start.from(moment([2007, 1, 28]).add({s: 90}), true), '2 dəqiqə', '90 seconds = 2 minutes'); @@ -149,16 +149,16 @@ test('from', function (assert) { }); test('suffix', function (assert) { - assert.equal(moment(30000).from(0), 'birneçə saniyyə sonra', 'prefix'); - assert.equal(moment(0).from(30000), 'birneçə saniyyə əvvəl', 'suffix'); + assert.equal(moment(30000).from(0), 'birneçə saniyə sonra', 'prefix'); + assert.equal(moment(0).from(30000), 'birneçə saniyə əvvəl', 'suffix'); }); test('now from now', function (assert) { - assert.equal(moment().fromNow(), 'birneçə saniyyə əvvəl', 'now from now should display as in the past'); + assert.equal(moment().fromNow(), 'birneçə saniyə əvvəl', 'now from now should display as in the past'); }); test('fromNow', function (assert) { - assert.equal(moment().add({s: 30}).fromNow(), 'birneçə saniyyə sonra', 'in a few seconds'); + assert.equal(moment().add({s: 30}).fromNow(), 'birneçə saniyə sonra', 'in a few seconds'); assert.equal(moment().add({d: 5}).fromNow(), '5 gün sonra', 'in 5 days'); });