]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] az: Fix typo in seconds (#4527)
authorKunal Marwaha <marwahaha@berkeley.edu>
Tue, 17 Apr 2018 20:28:35 +0000 (12:28 -0800)
committerGitHub <noreply@github.com>
Tue, 17 Apr 2018 20:28:35 +0000 (12:28 -0800)
* [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

src/locale/az.js
src/test/locale/az.js

index deda41c6c761508fac2740d7ada5d6c9b2286b53..4fea428f7d29e57f57c3ba307b18e8f6e146d61f 100644 (file)
@@ -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ə',
index c008e7f7f5b310f927c971cc6429bab8eb7462dd..f152420769064d730df6ef4a72d50e52c661bcf5 100644 (file)
@@ -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');
 });