Skip to content

Commit 081fa8d

Browse files
Jack-Workssmorimoto
authored andcommitted
Improve zh-Hans
1 parent cd24432 commit 081fa8d

File tree

3 files changed

+40
-28
lines changed

3 files changed

+40
-28
lines changed

Diff for: zh-Hans/proposals.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
"champions": "推进者",
2525
"authors-and-champions": "作者和推进者",
2626
"see-more": "查看各阶段的提案",
27-
"needs_translation": "Needs Translation",
27+
"needs_translation": "需要翻译",
2828
"needs_translation_url": "https://github.com/tc39/tc39.github.io/blob/main/translation_zh-Hans.md",
29-
"community_translations": "This page is translated by the community. If you want to contribute, read our <a href=\"https://github.com/tc39/tc39.github.io/blob/main/translation_zh-Hans.md\">guidelines</a>.",
29+
"community_translations": "这个页面的翻译是由社区贡献的。如果你也想贡献,请阅读我们的<a href=\"https://github.com/tc39/tc39.github.io/blob/main/translation_zh-Hans.md\">指引</a>",
3030
"months": {
31-
"1": "January",
32-
"2": "February",
33-
"3": "March",
34-
"4": "April",
35-
"5": "May",
36-
"6": "June",
37-
"7": "July",
38-
"8": "August",
39-
"9": "September",
40-
"10": "October",
41-
"11": "November",
42-
"12": "December"
31+
"1": "1 月",
32+
"2": "2 月",
33+
"3": "3 月",
34+
"4": "4 月",
35+
"5": "5 月",
36+
"6": "6 月",
37+
"7": "7 月",
38+
"8": "8 月",
39+
"9": "9 月",
40+
"10": "10 月",
41+
"11": "11 月",
42+
"12": "12 月"
4343
}
4444
}

Diff for: zh-Hans/site.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"navigation": {
55
"TC39": {
66
"title": "TC39",
7-
"agenda": "Meeting Agendas",
8-
"notes": "Meeting Notes",
7+
"agenda": "会议日程",
8+
"notes": "会议记录",
99
"sub-menu": "展开 “TC39” 的子列表"
1010
},
1111
"specs": {
@@ -14,7 +14,7 @@
1414
"ecma-262": "ECMA-262, ECMAScript",
1515
"ecma-402": "ECMA-402, 国际化 API",
1616
"ecma-404": "ECMA-404, JSON",
17-
"ecma-414": "ECMA-414, ECMAScript Specification Suite",
17+
"ecma-414": "ECMA-414, ECMAScript 规范套件",
1818
"sub-menu": "展开 “规范文件” 的子列表"
1919
},
2020
"contribute": {

Diff for: zh-Hans/stage3.json

+23-11
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,35 @@
1919
"title": "import 断言",
2020
"description": "该提案为 `import` 语句添加了断言语法。如果模块不符合期望的断言,则导入会失败。"
2121
},
22-
"proposal-json-modules": { "title": "JSON Modules", "description": null },
22+
"proposal-json-modules": { "title": "JSON 模块", "description": "该提案添加了将 JSON 文件当成模块导入的功能。" },
2323
"proposal-private-fields-in-in": {
24-
"title": "Ergonomic Brand Checks",
25-
"description": null
24+
"title": "符合人体工学的对象种类检查",
25+
"description": "提供符合人体工学的对象检查,而不需要用到 try-catch"
2626
},
2727
"proposal-class-static-block": {
28-
"title": "Class Static Block",
29-
"description": null
28+
"title": "类的静态初始化块",
29+
"description": "该提案提供了一种在类的定义时执行额外初始化代码的办法。这不是公共字段的替代品,因为公共字段提供了可静态分析的信息、能被装饰器装饰。这被用于解决一些现有的问题。"
3030
},
31-
"proposal-error-cause": { "title": "Error Cause", "description": null },
32-
"proposal-temporal": { "title": "Temporal", "description": null },
31+
"proposal-error-cause": { "title": "Error Cause", "description": "Error 是用来表示异常的对象。为了帮助诊断,错误会包含错误消息等上下文信息。如果错误是从更深层的内部方法中抛出的,目前没有方法来简单的附加额外信息。这个提案添加了 cause 来表明这个错误的来源错误。" },
32+
"proposal-temporal": { "title": "Temporal", "description": "Date 是 ECMAScript 中很长时间的痛点。这个提案通过添加新的 Temporal 对象,带来了现代的时间与日期 API。" },
3333
"proposal-accessible-object-hasownproperty": {
34-
"title": "Accessible Object.prototype.hasOwnProperty()",
35-
"description": "Proposal for an Object.hasOwn() method to make Object.prototype.hasOwnProperty() more accessible."
34+
"title": "更容易的调用 Object.prototype.hasOwnProperty()",
35+
"description": "该提案提出了 Object.hasOwn() 作为 Object.prototype.hasOwnProperty() 更容易调用的替代品。"
3636
},
3737
"proposal-resizablearraybuffer": {
38-
"title": "In-Place Resizable and Growable ArrayBuffers",
39-
"description": null
38+
"title": "原地调整大小的 ArrayBuffer",
39+
"description": "ArrayBuffer 使得二进制管理变得方便。该提案扩展了 ArrayBuffer 构造器的功能,使得其可以设置最大大小,并且在未来进行扩容和收缩。ShareArrayBuffer 也支持同样的操作,但是只能扩容不能收缩。该提案同时还添加了 tranfer 方法来进行零拷贝的移动、固定可变的 ArrayBuffer。"
40+
},
41+
"proposal-array-find-from-last": {
42+
"title": "Array.prototype.findLast 和 Array.prototype.findLastIndex",
43+
"description": "该提案允许在数组中找到第一个或最后一个满足条件的元素的值或者索引。"
44+
},
45+
"proposal-shadowrealm": {
46+
"title": "ShadowRealm API",
47+
"description": "ShadowRealms 是一个独立的全局环境,拥有它自己的全局对象和内置函数。"
48+
},
49+
"proposal-array-grouping": {
50+
"title": "Array Grouping",
51+
"description": "该提案使给数组分组更加容易。"
4052
}
4153
}

0 commit comments

Comments
 (0)