diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:13:18 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 8ccfa93045a6c119303566370999f59a0aae3b25 (patch) | |
tree | 972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/intl | |
parent | 3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff) | |
download | translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2 translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip |
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/intl')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html | 5 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html | 13 |
2 files changed, 7 insertions, 11 deletions
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 874f0cdbf7..04d383b97d 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 @@ -43,10 +43,7 @@ Intl.DateTimeFormat.call(<var>this</var>[, <var>locales</var>[, <var>options</va <dt><code>hour12</code></dt> <dd>是否使用12小时时间制(而不是24小时的时间). 可能的值是<code>true</code> 或 <code>false</code>; 默认值是根据locale来自动决定的(译者注:中国地区的默认值为true).</dd> <dt><code>formatMatcher</code></dt> - <dd><code>format的匹配算法.可能的值有"basic"和"best fit";默认值是"best fit".有关此属性使用的信息,参见以下段落。</code></dd> - <dd> - <p>日期时间插件被格式化输出时可以使用的属性集合描述。实现需要支持是以下子集中的其中一个(译者注:当weekday,year等这些属性一个也不使用的时候,在cmn-Hans-CN中相当于使用集合year, month, day, hour, minute, second并且它们的值都是numeric):</p> - </dd> + <dd><code>format的匹配算法.可能的值有"basic"和"best fit";默认值是"best fit".有关此属性使用的信息,参见以下段落。</code>日期时间插件被格式化输出时可以使用的属性集合描述。实现需要支持是以下子集中的其中一个(译者注:当weekday,year等这些属性一个也不使用的时候,在cmn-Hans-CN中相当于使用集合year, month, day, hour, minute, second并且它们的值都是numeric):</dd> </dl> <ul> 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 0ab3691377..a4b2e509de 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,12 @@ Intl.NumberFormat.call(<var>this</var>[, <var>locales</var>[, <var>options</var> <dt><code>unit</code>{{Experimental_inline}}</dt> <dd><code>unit</code> 格式中使用的单位,可能的值为在 <a href="http://unicode.org/reports/tr35/tr35-general.html#Unit_Elements" rel="nofollow">UTS #35, Part 2, Section 6</a> 定义的核心单元标识符。已从<a href="https://github.com/unicode-org/cldr/blob/master/common/validity/unit.xml">完整列表</a>中选择了一个<a href="https://tc39.es/proposal-unified-intl-numberformat/section6/locales-currencies-tz_proposed_out.html#sec-issanctionedsimpleunitidentifier">单位子集</a>以用于ECMAScript。可以将成对的简单单位与 <code>“ -per-”</code> 连接以组成一个复合单位。没有默认值;如果 <code>style</code> 为 <code>“unit”</code>,必须提供<code>unit</code> 属性。</dd> <dt><code>unitDisplay</code>{{Experimental_inline}}</dt> - <dd><code>unit</code> 格式化中使用的单位格式化样式,默认值为“ short”。</dd> - <dd> - <ul> - <li><code>“long”</code> (e.g., <code>16 litres</code>)</li> - <li><code>“short“</code> (e.g., <code>16 l</code>)</li> - <li><code>”narrow“</code> (e.g., <code>16l</code>)</li> - </ul> + <dd><code>unit</code> 格式化中使用的单位格式化样式,默认值为“ short”。 + <ul> + <li><code>“long”</code> (e.g., <code>16 litres</code>)</li> + <li><code>“short“</code> (e.g., <code>16 l</code>)</li> + <li><code>”narrow“</code> (e.g., <code>16l</code>)</li> + </ul> </dd> <dt><code>currency</code></dt> <dd>在货币格式化中使用的货币符号. 可能的值是<em>ISO</em>的货币代码 (the ISO 4217 currency codes,) 例如 <code>"USD"</code> 表示美元, <code>"EUR"</code> 表示欧元, 或者 <code>"CNY"是人民币</code> — 更多请参考 <a href="http://www.currency-iso.org/en/home/tables/table-a1.html">Current currency & funds code list</a>。没有默认值,如果 <code>style</code> 是 <code>“currency”</code>,必须提 <code>currency</code> 属性.</dd> |