Skip to content

Commit 14be489

Browse files
authored
fix(i18n): update zh-CN locale (#2712)
1 parent ed4ba1a commit 14be489

1 file changed

Lines changed: 64 additions & 4 deletions

File tree

i18n/locales/zh-CN.json

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"chat": "聊天",
2121
"builders_chat": "构建者",
2222
"keyboard_shortcuts": "键盘快捷键",
23-
"brand": "品牌"
23+
"brand": "品牌",
24+
"resources": "资源",
25+
"features": "功能",
26+
"other": "其它"
2427
},
2528
"shortcuts": {
2629
"section": {
@@ -42,7 +45,8 @@
4245
"open_docs": "打开文档",
4346
"disable_shortcuts": "你可以在{settings}中禁用快捷键。",
4447
"open_main": "查看主要信息",
45-
"open_diff": "查看版本差异"
48+
"open_diff": "查看版本差异",
49+
"open_timeline": "时间线"
4650
},
4751
"search": {
4852
"label": "搜索 npm 包",
@@ -313,6 +317,7 @@
313317
"warnings": "警告:",
314318
"go_back_home": "返回首页",
315319
"per_week": "/ 周",
320+
"per_week_short": "/周",
316321
"vanity_downloads_hint": "累计下载量:未显示包 | 累计下载量:显示的包 | 累计下载量:{count} 个显示的包的总和",
317322
"sort": {
318323
"name": "名称",
@@ -380,9 +385,18 @@
380385
"size": "安装大小增加了 {percent} (增大了 {size})",
381386
"deps": "{count} 个依赖项"
382387
},
388+
"size_decrease": {
389+
"title_size": "自 v{version} 起,包体积已减小!",
390+
"title_deps": "自 v{version} 起,依赖数量已减少!",
391+
"title_both": "自 v{version} 起,包体积和依赖数量均已减少!",
392+
"size": "安装体积减少了 {percent}(缩小了 {size})",
393+
"deps": "减少了 {count} 个依赖"
394+
},
383395
"replacement": {
384396
"title": "你可能不需要这个依赖。",
397+
"example": "示例:",
385398
"native": "该功能自 Node.js {nodeVersion} 起已被内置,可直接使用 {replacement} 替代。",
399+
"native_no_version": "此包可直接使用 {replacement} 替代。",
386400
"simple": "社区标记此包为冗余,建议替换为:{replacement}。",
387401
"documented": "社区标记此包存在性能更优的替代方案",
388402
"none": "此包已被标记为不再需要,其功能很可能已由所有引擎原生提供。",
@@ -433,11 +447,15 @@
433447
"docs": "文档",
434448
"fund": "资助",
435449
"compare": "比较",
450+
"timeline": "时间线",
436451
"compare_this_package": "比较此包"
437452
},
438453
"likes": {
439454
"like": "点赞此包",
440-
"unlike": "取消点赞"
455+
"unlike": "取消点赞",
456+
"top_rank_tooltip": "该包位列 npmx 点赞数前 10!(第 #{rank} 名)",
457+
"top_rank_label": "第 #{rank} 名",
458+
"top_rank_link_label": "查看点赞排行榜。该包当前排名第 #{rank}。"
441459
},
442460
"docs": {
443461
"contents": "目录",
@@ -478,7 +496,8 @@
478496
"warning": "警告",
479497
"caution": "当心"
480498
},
481-
"copy_as_markdown": "复制为 Markdown"
499+
"copy_as_markdown": "复制为 Markdown",
500+
"error_loading": "加载 README 详情失败"
482501
},
483502
"provenance_section": {
484503
"title": "来源",
@@ -548,6 +567,9 @@
548567
"filter_help": "语义化版本范围过滤帮助",
549568
"filter_tooltip": "使用 {link} 过滤版本。例如,^3.0.0 显示所有 3.x 版本。",
550569
"filter_tooltip_link": "语义化版本范围",
570+
"license_change_help": "许可证变更详情",
571+
"license_change_warning": "与上一版本相比,许可证已发生变更。",
572+
"license_change_record": "该包的许可证已从“{from}”变更为“{to}”。",
551573
"no_matches": "没有匹配此范围的版本",
552574
"copy_alt": {
553575
"per_version_analysis": "{version} ({downloads}次)",
@@ -557,6 +579,34 @@
557579
"current_tags": "当前标签",
558580
"no_match_filter": "没有与“{filter}”匹配的版本"
559581
},
582+
"timeline": {
583+
"load_more": "加载更多",
584+
"load_error": "加载时间线失败,请稍后再试。",
585+
"size_increase": "安装体积增加了 {percent}%(增加了 {size})",
586+
"size_decrease": "安装体积减少了 {percent}%(减少了 {size})",
587+
"dep_increase": "新增了 {count} 个依赖",
588+
"dep_decrease": "移除了 {count} 个依赖",
589+
"license_change": "许可证已从 {from} 变更为 {to}",
590+
"esm_added": "模块类型已切换为 ESM",
591+
"esm_removed": "模块类型已从 ESM 切换为 CJS",
592+
"types_added": "已添加 TypeScript 类型支持",
593+
"types_removed": "已移除 TypeScript 类型支持",
594+
"trusted_publisher_added": "已启用可信发布",
595+
"trusted_publisher_removed": "已移除可信发布",
596+
"provenance_added": "已启用 Provenance",
597+
"provenance_removed": "已移除 Provenance",
598+
"chart": {
599+
"tab_aria_label": "指标选择",
600+
"base_scale": "Y 轴从 0 开始",
601+
"zoom": "缩放",
602+
"reset_minimap": "重置缩略图",
603+
"copy_alt": {
604+
"key_changes": "关键变更:{version_events}。",
605+
"version_events": "版本 {version}:{events}",
606+
"general_description": "折线图展示了 {package} 包从版本 {first} 到 {last} 的 {metric} 变化情况。版本 {first} 的 {metric} 为 {first_value},版本 {last} 为 {last_value}(整体变化 {overall_progress_percentage}%)。{key_changes} {watermark}。"
607+
}
608+
}
609+
},
560610
"dependencies": {
561611
"title": "依赖({count} 个)",
562612
"list_label": "包依赖",
@@ -759,6 +809,16 @@
759809
"tarball": "下载 Tarball 作为 .tar.gz"
760810
}
761811
},
812+
"leaderboard": {
813+
"likes": {
814+
"title": "点赞排行榜",
815+
"description": "当前 npmx 上点赞数最高的 10 个包。",
816+
"rank": "排名",
817+
"likes": "点赞数",
818+
"unavailable_title": "暂无点赞排行榜",
819+
"unavailable_description": "当前暂无可展示的点赞排行榜。"
820+
}
821+
},
762822
"connector": {
763823
"modal": {
764824
"title": "本地连接器",

0 commit comments

Comments
 (0)