Skip to content

Commit 6e5fde2

Browse files
authored
feat(i18n): complete zh-CN localization (#985)
1 parent 7c8a637 commit 6e5fde2

File tree

2 files changed

+66
-10
lines changed

2 files changed

+66
-10
lines changed

i18n/locales/zh-CN.json

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"updating": "(更新中…)",
2929
"no_results": "未找到匹配“{query}”的包",
3030
"title": "搜索",
31+
"title_search": "搜索:{search}",
32+
"title_packages": "搜索包",
33+
"meta_description": "“{search}” 的搜索结果",
34+
"meta_description_packages": "搜索 npm 包",
3135
"not_taken": "{name} 尚未被占用",
3236
"claim_prompt": "在 npm 上声明",
3337
"claim_button": "声明“{name}”",
@@ -181,6 +185,10 @@
181185
"fund": "资助",
182186
"compare": "比较"
183187
},
188+
"likes": {
189+
"like": "喜欢这个包",
190+
"unlike": "取消喜欢这个包"
191+
},
184192
"docs": {
185193
"not_available": "文档不可用",
186194
"not_available_detail": "我们无法为此版本生成文档。"
@@ -204,7 +212,25 @@
204212
"title": "Readme",
205213
"no_readme": "没有可用的 README。",
206214
"view_on_github": "在 GitHub 上查看",
207-
"toc_title": "大纲"
215+
"toc_title": "大纲",
216+
"callout": {
217+
"note": "注意",
218+
"tip": "提示",
219+
"important": "重要",
220+
"warning": "警告",
221+
"caution": "当心"
222+
}
223+
},
224+
"provenance_section": {
225+
"title": "来源",
226+
"built_and_signed_on": "在 {provider} 上构建并签名",
227+
"view_build_summary": "查看构建摘要",
228+
"source_commit": "源提交",
229+
"build_file": "构建文件",
230+
"public_ledger": "公共账本",
231+
"transparency_log_entry": "透明日志条目",
232+
"view_more_details": "查看更多详情",
233+
"error_loading": "加载来源详情失败"
208234
},
209235
"keywords_title": "关键词",
210236
"compatibility": "兼容性",
@@ -268,6 +294,7 @@
268294
"date_range": "{start} 到 {end}",
269295
"date_range_multiline": "{start}\n到 {end}",
270296
"analyze": "分析下载量",
297+
"community_distribution": "查看社区采用分布",
271298
"modal_title": "下载量",
272299
"granularity": "周期",
273300
"granularity_daily": "每日",
@@ -388,7 +415,7 @@
388415
"connector": {
389416
"status": {
390417
"connecting": "连接中…",
391-
"connected_as": "已连接为 {'@'}{user}",
418+
"connected_as": "已连接为 ~{user}",
392419
"connected": "已连接",
393420
"connect_cli": "连接本地 CLI",
394421
"aria_connecting": "连接到本地连接器中",
@@ -402,7 +429,7 @@
402429
"contributor_notice": "连接器尚未发布到 npm。请参阅 {link} 了解如何本地运行。",
403430
"contributor_link": "贡献指南",
404431
"connected": "已连接",
405-
"connected_as_user": "已连接为 {'@'}{user}",
432+
"connected_as_user": "已连接为 ~{user}",
406433
"connected_hint": "现在你可以通过 Web UI 管理包和组织。",
407434
"disconnect": "断开连接",
408435
"run_hint": "在你的机器上运行连接器以启用管理功能。",
@@ -605,7 +632,8 @@
605632
"provenance": {
606633
"verified": "已验证",
607634
"verified_title": "已验证的来源",
608-
"verified_via": "已验证:通过 {provider} 发布"
635+
"verified_via": "已验证:通过 {provider} 发布",
636+
"view_more_details": "查看更多详情"
609637
},
610638
"jsr": {
611639
"title": "也适用于 JSR",
@@ -754,7 +782,7 @@
754782
}
755783
},
756784
"contributors": {
757-
"title": "贡献者",
785+
"title": "{count} 位贡献者",
758786
"description": "npmx 是完全开源的,由令人惊叹的社区贡献者们共同构建。",
759787
"loading": "正在加载贡献者…",
760788
"error": "无法加载贡献者",

lunaria/files/zh-CN.json

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"updating": "(更新中…)",
2929
"no_results": "未找到匹配“{query}”的包",
3030
"title": "搜索",
31+
"title_search": "搜索:{search}",
32+
"title_packages": "搜索包",
33+
"meta_description": "“{search}” 的搜索结果",
34+
"meta_description_packages": "搜索 npm 包",
3135
"not_taken": "{name} 尚未被占用",
3236
"claim_prompt": "在 npm 上声明",
3337
"claim_button": "声明“{name}”",
@@ -181,6 +185,10 @@
181185
"fund": "资助",
182186
"compare": "比较"
183187
},
188+
"likes": {
189+
"like": "喜欢这个包",
190+
"unlike": "取消喜欢这个包"
191+
},
184192
"docs": {
185193
"not_available": "文档不可用",
186194
"not_available_detail": "我们无法为此版本生成文档。"
@@ -204,7 +212,25 @@
204212
"title": "Readme",
205213
"no_readme": "没有可用的 README。",
206214
"view_on_github": "在 GitHub 上查看",
207-
"toc_title": "大纲"
215+
"toc_title": "大纲",
216+
"callout": {
217+
"note": "注意",
218+
"tip": "提示",
219+
"important": "重要",
220+
"warning": "警告",
221+
"caution": "当心"
222+
}
223+
},
224+
"provenance_section": {
225+
"title": "来源",
226+
"built_and_signed_on": "在 {provider} 上构建并签名",
227+
"view_build_summary": "查看构建摘要",
228+
"source_commit": "源提交",
229+
"build_file": "构建文件",
230+
"public_ledger": "公共账本",
231+
"transparency_log_entry": "透明日志条目",
232+
"view_more_details": "查看更多详情",
233+
"error_loading": "加载来源详情失败"
208234
},
209235
"keywords_title": "关键词",
210236
"compatibility": "兼容性",
@@ -268,6 +294,7 @@
268294
"date_range": "{start} 到 {end}",
269295
"date_range_multiline": "{start}\n到 {end}",
270296
"analyze": "分析下载量",
297+
"community_distribution": "查看社区采用分布",
271298
"modal_title": "下载量",
272299
"granularity": "周期",
273300
"granularity_daily": "每日",
@@ -388,7 +415,7 @@
388415
"connector": {
389416
"status": {
390417
"connecting": "连接中…",
391-
"connected_as": "已连接为 {'@'}{user}",
418+
"connected_as": "已连接为 ~{user}",
392419
"connected": "已连接",
393420
"connect_cli": "连接本地 CLI",
394421
"aria_connecting": "连接到本地连接器中",
@@ -402,7 +429,7 @@
402429
"contributor_notice": "连接器尚未发布到 npm。请参阅 {link} 了解如何本地运行。",
403430
"contributor_link": "贡献指南",
404431
"connected": "已连接",
405-
"connected_as_user": "已连接为 {'@'}{user}",
432+
"connected_as_user": "已连接为 ~{user}",
406433
"connected_hint": "现在你可以通过 Web UI 管理包和组织。",
407434
"disconnect": "断开连接",
408435
"run_hint": "在你的机器上运行连接器以启用管理功能。",
@@ -605,7 +632,8 @@
605632
"provenance": {
606633
"verified": "已验证",
607634
"verified_title": "已验证的来源",
608-
"verified_via": "已验证:通过 {provider} 发布"
635+
"verified_via": "已验证:通过 {provider} 发布",
636+
"view_more_details": "查看更多详情"
609637
},
610638
"jsr": {
611639
"title": "也适用于 JSR",
@@ -754,7 +782,7 @@
754782
}
755783
},
756784
"contributors": {
757-
"title": "贡献者",
785+
"title": "{count} 位贡献者",
758786
"description": "npmx 是完全开源的,由令人惊叹的社区贡献者们共同构建。",
759787
"loading": "正在加载贡献者…",
760788
"error": "无法加载贡献者",

0 commit comments

Comments
 (0)