Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve zh-hans #417

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions zh-Hans/proposals.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
"champions": "推进者",
"authors-and-champions": "作者和推进者",
"see-more": "查看各阶段的提案",
"needs_translation": "Needs Translation",
"needs_translation": "需要翻译",
"needs_translation_url": "https://github.com/tc39/tc39.github.io/blob/main/translation_zh-Hans.md",
"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>.",
"community_translations": "这个页面的翻译是由社区贡献的。如果你也想贡献,请阅读我们的<a href=\"https://github.com/tc39/tc39.github.io/blob/main/translation_zh-Hans.md\">指引</a>",
"months": {
"1": "January",
"2": "February",
"3": "March",
"4": "April",
"5": "May",
"6": "June",
"7": "July",
"8": "August",
"9": "September",
"10": "October",
"11": "November",
"12": "December"
"1": "1 月",
"2": "2 月",
"3": "3 月",
"4": "4 月",
"5": "5 月",
"6": "6 月",
"7": "7 月",
"8": "8 月",
"9": "9 月",
"10": "10 月",
"11": "11 月",
"12": "12 月"
}
}
6 changes: 3 additions & 3 deletions zh-Hans/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"navigation": {
"TC39": {
"title": "TC39",
"agenda": "Meeting Agendas",
"notes": "Meeting Notes",
"agenda": "会议日程",
"notes": "会议记录",
"sub-menu": "展开 “TC39” 的子列表"
},
"specs": {
Expand All @@ -14,7 +14,7 @@
"ecma-262": "ECMA-262, ECMAScript",
"ecma-402": "ECMA-402, 国际化 API",
"ecma-404": "ECMA-404, JSON",
"ecma-414": "ECMA-414, ECMAScript Specification Suite",
"ecma-414": "ECMA-414, ECMAScript 规范套件",
"sub-menu": "展开 “规范文件” 的子列表"
},
"contribute": {
Expand Down
43 changes: 32 additions & 11 deletions zh-Hans/stage3.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,44 @@
"title": "import 断言",
"description": "该提案为 `import` 语句添加了断言语法。如果模块不符合期望的断言,则导入会失败。"
},
"proposal-json-modules": { "title": "JSON Modules", "description": null },
"proposal-json-modules": {
"title": "JSON 模块",
"description": "该提案添加了将 JSON 文件当成模块导入的功能。"
},
"proposal-private-fields-in-in": {
"title": "Ergonomic Brand Checks",
"description": null
"title": "符合人体工学的对象种类检查",
"description": "提供符合人体工学的对象检查,而不需要用到 try-catch"
},
"proposal-class-static-block": {
"title": "Class Static Block",
"description": null
"title": "类的静态初始化块",
"description": "该提案提供了一种在类的定义时执行额外初始化代码的办法。这不是公共字段的替代品,因为公共字段提供了可静态分析的信息、能被装饰器装饰。这被用于解决一些现有的问题。"
},
"proposal-error-cause": {
"title": "Error Cause",
"description": "Error 是用来表示异常的对象。为了帮助诊断,错误会包含错误消息等上下文信息。如果错误是从更深层的内部方法中抛出的,目前没有方法来简单的附加额外信息。这个提案添加了 cause 来表明这个错误的来源错误。"
},
"proposal-temporal": {
"title": "Temporal",
"description": "Date 是 ECMAScript 中很长时间的痛点。这个提案通过添加新的 Temporal 对象,带来了现代的时间与日期 API。"
},
"proposal-error-cause": { "title": "Error Cause", "description": null },
"proposal-temporal": { "title": "Temporal", "description": null },
"proposal-accessible-object-hasownproperty": {
"title": "Accessible Object.prototype.hasOwnProperty()",
"description": "Proposal for an Object.hasOwn() method to make Object.prototype.hasOwnProperty() more accessible."
"title": "更容易的调用 Object.prototype.hasOwnProperty()",
"description": "该提案提出了 Object.hasOwn() 作为 Object.prototype.hasOwnProperty() 更容易调用的替代品。"
},
"proposal-resizablearraybuffer": {
"title": "In-Place Resizable and Growable ArrayBuffers",
"description": null
"title": "原地调整大小的 ArrayBuffer",
"description": "ArrayBuffer 使得二进制管理变得方便。该提案扩展了 ArrayBuffer 构造器的功能,使得其可以设置最大大小,并且在未来进行扩容和收缩。ShareArrayBuffer 也支持同样的操作,但是只能扩容不能收缩。该提案同时还添加了 tranfer 方法来进行零拷贝的移动、固定可变的 ArrayBuffer。"
},
"proposal-array-find-from-last": {
"title": "Array.prototype.findLast 和 Array.prototype.findLastIndex",
"description": "该提案允许在数组中找到第一个或最后一个满足条件的元素的值或者索引。"
},
"proposal-shadowrealm": {
"title": "ShadowRealm API",
"description": "ShadowRealms 是一个独立的全局环境,拥有它自己的全局对象和内置函数。"
},
"proposal-array-grouping": {
"title": "Array Grouping",
"description": "该提案使给数组分组更加容易。"
}
}