]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] zh: align relativeTime.future to CLDR 33
authorHuáng Jùnliàng <i@jhuang.me>
Tue, 10 Jul 2018 05:27:38 +0000 (13:27 +0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 27 Apr 2020 02:39:19 +0000 (05:39 +0300)
see `future-other` section of https://www.unicode.org/cldr/charts/33/by_type/date_&_time.fields.html

src/locale/zh-cn.js
src/locale/zh-hk.js
src/locale/zh-tw.js
src/test/locale/zh-cn.js
src/test/locale/zh-hk.js
src/test/locale/zh-tw.js

index 3311623577e239baa49428549ca8a3351ba43e77..c775295465f50b007316faacb335d877aff76afb 100644 (file)
@@ -82,7 +82,7 @@ export default moment.defineLocale('zh-cn', {
         }
     },
     relativeTime: {
-        future: '%så\86\85',
+        future: '%så\90\8e',
         past: '%s前',
         s: '几秒',
         ss: '%d 秒',
index b4bc2edf67d401c35de07e9d7dba04df01d47591..78a10190e6bb9ba98afb4d8eaae1b3862348e118 100644 (file)
@@ -83,7 +83,7 @@ export default moment.defineLocale('zh-hk', {
         }
     },
     relativeTime: {
-        future: '%så\85§',
+        future: '%så¾\8c',
         past: '%s前',
         s: '幾秒',
         ss: '%d 秒',
index 7301fecbdf11d20004a1a8afdd4fc764df164208..aa98ab1053adba111ad25fa9893026727a6d5aa7 100644 (file)
@@ -81,7 +81,7 @@ export default moment.defineLocale('zh-tw', {
         }
     },
     relativeTime: {
-        future: '%så\85§',
+        future: '%så¾\8c',
         past: '%s前',
         s: '幾秒',
         ss: '%d 秒',
index 2acfaca11bd03029dbc506f5e6ae8a354cbc11b0..940836a4bdce8d4fc88d175ff69114fc38c8f050 100644 (file)
@@ -242,7 +242,7 @@ test('from', function (assert) {
 });
 
 test('suffix', function (assert) {
-    assert.equal(moment(30000).from(0), 'å\87 ç§\92å\86\85', 'prefix');
+    assert.equal(moment(30000).from(0), 'å\87 ç§\92å\90\8e', 'prefix');
     assert.equal(moment(0).from(30000), '几秒前', 'suffix');
 });
 
@@ -257,10 +257,10 @@ test('now from now', function (assert) {
 test('fromNow', function (assert) {
     assert.equal(
         moment().add({ s: 30 }).fromNow(),
-        'å\87 ç§\92å\86\85',
+        'å\87 ç§\92å\90\8e',
         'in a few seconds'
     );
-    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å\86\85', 'in 5 days');
+    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å\90\8e', 'in 5 days');
 });
 
 test('calendar day', function (assert) {
index e71581589860da6fe953404ae5527b1478bc7a5f..b83e5debe40127d44589a1abb3232225168ac0b9 100644 (file)
@@ -240,7 +240,7 @@ test('from', function (assert) {
 });
 
 test('suffix', function (assert) {
-    assert.equal(moment(30000).from(0), 'å¹¾ç§\92å\85§', 'prefix');
+    assert.equal(moment(30000).from(0), 'å¹¾ç§\92å¾\8c', 'prefix');
     assert.equal(moment(0).from(30000), '幾秒前', 'suffix');
 });
 
@@ -255,10 +255,10 @@ test('now from now', function (assert) {
 test('fromNow', function (assert) {
     assert.equal(
         moment().add({ s: 30 }).fromNow(),
-        'å¹¾ç§\92å\85§',
+        'å¹¾ç§\92å¾\8c',
         'in a few seconds'
     );
-    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å\85§', 'in 5 days');
+    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å¾\8c', 'in 5 days');
 });
 
 test('calendar day', function (assert) {
index 785836e1c80f62a10c33860522f70820413e2ce3..5c3060764e062c3c80d4db021619c61cae659ff1 100644 (file)
@@ -240,7 +240,7 @@ test('from', function (assert) {
 });
 
 test('suffix', function (assert) {
-    assert.equal(moment(30000).from(0), 'å¹¾ç§\92å\85§', 'prefix');
+    assert.equal(moment(30000).from(0), 'å¹¾ç§\92å¾\8c', 'prefix');
     assert.equal(moment(0).from(30000), '幾秒前', 'suffix');
 });
 
@@ -255,10 +255,10 @@ test('now from now', function (assert) {
 test('fromNow', function (assert) {
     assert.equal(
         moment().add({ s: 30 }).fromNow(),
-        'å¹¾ç§\92å\85§',
+        'å¹¾ç§\92å¾\8c',
         'in a few seconds'
     );
-    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å\85§', 'in 5 days');
+    assert.equal(moment().add({ d: 5 }).fromNow(), '5 å¤©å¾\8c', 'in 5 days');
 });
 
 test('calendar day', function (assert) {