]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
fix context in persian (fa) locale files
authorNasser Ghiasi <nasserghiasi@gmail.com>
Tue, 21 Feb 2017 20:17:22 +0000 (23:47 +0330)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 11 Mar 2017 21:50:13 +0000 (23:50 +0200)
src/locale/fa.js
src/test/locale/fa.js

index 634c2c19dbbfb143d00292d62e97d394d2feb7dd..45c950d123b172966c8bcab92091b7c2179ffd85 100644 (file)
@@ -65,7 +65,7 @@ export default moment.defineLocale('fa', {
     relativeTime : {
         future : 'در %s',
         past : '%s پیش',
-        s : 'چندین ثانیه',
+        s : 'چند ثانیه',
         m : 'یک دقیقه',
         mm : '%d دقیقه',
         h : 'یک ساعت',
index 63c99bb3fe35dfea1d93464c1cfbf16ae24d3ddb..aca2a6913c223e01e6cd6e81fc12c83f1cd37667 100644 (file)
@@ -99,7 +99,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),  'چندین ثانیه', '44 seconds = a few seconds');
+    assert.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  'چند ثانیه', '44 seconds = a few seconds');
     assert.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  'یک دقیقه',       '45 seconds = a minute');
     assert.equal(start.from(moment([2007, 1, 28]).add({s: 89}), true),  'یک دقیقه',       '89 seconds = a minute');
     assert.equal(start.from(moment([2007, 1, 28]).add({s: 90}), true),  '۲ دقیقه',     '90 seconds = 2 minutes');
@@ -130,16 +130,16 @@ test('from', function (assert) {
 });
 
 test('suffix', function (assert) {
-    assert.equal(moment(30000).from(0), 'در چندین ثانیه', 'prefix');
-    assert.equal(moment(0).from(30000), 'چندین ثانیه پیش', 'suffix');
+    assert.equal(moment(30000).from(0), 'در چند ثانیه', 'prefix');
+    assert.equal(moment(0).from(30000), 'چند ثانیه پیش', 'suffix');
 });
 
 test('now from now', function (assert) {
-    assert.equal(moment().fromNow(), 'چندین ثانیه پیش',  'now from now should display as in the past');
+    assert.equal(moment().fromNow(), 'چند ثانیه پیش',  'now from now should display as in the past');
 });
 
 test('fromNow', function (assert) {
-    assert.equal(moment().add({s: 30}).fromNow(), 'در چندین ثانیه', 'in a few seconds');
+    assert.equal(moment().add({s: 30}).fromNow(), 'در چند ثانیه', 'in a few seconds');
     assert.equal(moment().add({d: 5}).fromNow(), 'در ۵ روز', 'in 5 days');
 });