From d44f5032d0f53256b2d5aef505d6b593fd3cd158 Mon Sep 17 00:00:00 2001
From: Irvin
Date: Wed, 16 Feb 2022 02:14:18 +0800
Subject: fix yari h2m dry run errors (zh-CN)
---
.../global_objects/intl/datetimeformat/index.html | 55 ++--------------------
.../global_objects/intl/numberformat/index.html | 8 +---
.../global_objects/intl/pluralrules/index.html | 4 +-
3 files changed, 6 insertions(+), 61 deletions(-)
(limited to 'files/zh-cn/web/javascript/reference/global_objects/intl')
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
index 04d383b97d..7275668035 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
@@ -23,9 +23,8 @@ Intl.DateTimeFormat.call(this[, locales[, options译者注:下面这两种扩展的使用方式是language[-scripts][-region]-u-nu-* 和 language[-scripts][-region]-u-ca-* ,例如:zh-u-nu-hanidec(表示中文十进制数字) 和 zh-u-ca-chinese(表示中国日历,比如壬辰年冬月8日) ,也可以 nu 和 ca 组合使用 比如 使用 zh-u-ca-chinese-nu-hanidec 格式化Date.now()的返回值类似于"丙申年冬月九日"
- nu
-
+ nu
- 编号系统. 可能的值包括:
"arab", "arabext", "bali", "beng", "deva", "fullwide", "gujr", "guru", "hanidec", "khmr", "knda", "laoo", "latn", "limb", "mlym", "mong", "mymr", "orya", "tamldec", "telu", "thai", "tibt".
ca
- 日历. 可能的值包括:
"buddhist", "chinese", "coptic", "ethioaa", "ethiopic", "gregory", "hebrew", "indian", "islamic", "islamicc", "iso8601", "japanese", "persian", "roc".
@@ -79,7 +78,7 @@ Intl.DateTimeFormat.call(this[, locales[, options时区名称的展现方式.可能的值有 "short", "long".
- 每个日期时间组件属性的默认值都是{{jsxref("undefined")}},但是若所有的组件属性都是{{jsxref("undefined")}},那么year, month, and day 的值就都被认为是"numeric".
+ 每个日期时间组件属性的默认值都是{{jsxref("undefined")}},但是若所有的组件属性都是{{jsxref("undefined")}},那么year, month, and day 的值就都被认为是"numeric".
@@ -226,55 +225,7 @@ console.log(date.toLocaleString('en-US', options));
浏览器兼容性
-{{CompatibilityTable}}
-
-
-
-
-
- | Feature |
- Chrome |
- Firefox (Gecko) |
- Internet Explorer |
- Opera |
- Safari (WebKit) |
-
-
- | Basic support |
- {{CompatChrome("24")}} |
- {{CompatGeckoDesktop("29")}} |
- {{CompatIE("11")}} |
- {{CompatOpera("15")}} |
- {{CompatSafari("10")}} |
-
-
-
-
-
-
-
-
-
- | Feature |
- Android |
- Chrome for Android |
- Firefox Mobile (Gecko) |
- IE Phone |
- Opera Mobile |
- Safari Mobile |
-
-
- | Basic support |
- {{CompatNo}} |
- {{CompatChrome("26")}} |
- {{CompatNo}} |
- {{CompatNo}} |
- {{CompatNo}} |
- {{CompatSafari("10")}} |
-
-
-
-
+{{Compat}}
相关链接
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
index a4b2e509de..e508097567 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
@@ -51,13 +51,7 @@ Intl.NumberFormat.call(this[, locales[, options
unit{{Experimental_inline}}
unit 格式中使用的单位,可能的值为在 UTS #35, Part 2, Section 6 定义的核心单元标识符。已从完整列表中选择了一个单位子集以用于ECMAScript。可以将成对的简单单位与 “ -per-” 连接以组成一个复合单位。没有默认值;如果 style 为 “unit”,必须提供unit 属性。
unitDisplay{{Experimental_inline}}
- unit 格式化中使用的单位格式化样式,默认值为“ short”。
-
- “long” (e.g., 16 litres)
- “short“ (e.g., 16 l)
- ”narrow“ (e.g., 16l)
-
-
+ unit 格式化中使用的单位格式化样式,默认值为“ short”。“long” (e.g., 16 litres)、“short“ (e.g., 16 l)、”narrow“ (e.g., 16l)
currency
在货币格式化中使用的货币符号. 可能的值是ISO的货币代码 (the ISO 4217 currency codes,) 例如 "USD" 表示美元, "EUR" 表示欧元, 或者 "CNY"是人民币 — 更多请参考 Current currency & funds code list。没有默认值,如果 style 是 “currency”,必须提 currency 属性.
currencyDisplay
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
index 77f7426002..52770bcc7a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
@@ -69,7 +69,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/PluralRules
例子
-基本用法
+基本用法
在没有指定语言环境的基本使用中,返回默认语言环境中的格式化字符串和默认选项。这有助于区分单数和复数形式,例如“dog”和“dogs”。
@@ -101,7 +101,7 @@ new Intl.PluralRules('ar-EG').select(6);
new Intl.PluralRules('ar-EG').select(18);
// → 'many'
-运用
+运用
可以查询查询结果使用>options参数进行自定义,该参数具有一个type您可以设置的属性ordinal。这对计算序数指标很有用,例如“第一”,“第二”,“第三”,“第四”,“42”等。
--
cgit v1.2.3-54-g00ecf