From: Nasser Ghiasi Date: Tue, 21 Feb 2017 20:17:22 +0000 (+0330) Subject: fix context in persian (fa) locale files X-Git-Tag: 2.18.0~28^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5004252b55a574fc759ac527c6b887d238829be2;p=thirdparty%2Fmoment.git fix context in persian (fa) locale files --- diff --git a/src/locale/fa.js b/src/locale/fa.js index 634c2c19d..45c950d12 100644 --- a/src/locale/fa.js +++ b/src/locale/fa.js @@ -65,7 +65,7 @@ export default moment.defineLocale('fa', { relativeTime : { future : 'در %s', past : '%s پیش', - s : 'چندین ثانیه', + s : 'چند ثانیه', m : 'یک دقیقه', mm : '%d دقیقه', h : 'یک ساعت', diff --git a/src/test/locale/fa.js b/src/test/locale/fa.js index 63c99bb3f..aca2a6913 100644 --- a/src/test/locale/fa.js +++ b/src/test/locale/fa.js @@ -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'); });