Skip to content

Commit 0087c56

Browse files
committed
feat(i18n): complete zh-cn localization
1 parent 0b55ca4 commit 0087c56

2 files changed

Lines changed: 60 additions & 4 deletions

File tree

i18n/locales/zh-CN.json

Lines changed: 30 additions & 2 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": "每日",
@@ -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",

lunaria/files/zh-CN.json

Lines changed: 30 additions & 2 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": "每日",
@@ -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",

0 commit comments

Comments
 (0)