Skip to content

Commit e0c6b73

Browse files
authored
feat(i18n): add missing zh-CN translations for shortcuts, data source… (#1250)
1 parent 85b5226 commit e0c6b73

File tree

2 files changed

+82
-6
lines changed

2 files changed

+82
-6
lines changed

i18n/locales/zh-CN.json

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,35 @@
1515
"docs": "文档",
1616
"source": "源码",
1717
"social": "社交媒体",
18-
"chat": "聊天"
18+
"chat": "聊天",
19+
"keyboard_shortcuts": "键盘快捷键"
20+
},
21+
"shortcuts": {
22+
"section": {
23+
"global": "全局",
24+
"search": "搜索",
25+
"package": ""
26+
},
27+
"focus_search": "聚焦搜索",
28+
"show_kbd_hints": "高亮键盘提示",
29+
"settings": "打开设置",
30+
"compare": "打开比较",
31+
"compare_from_package": "打开比较(使用当前包预填充)",
32+
"navigate_results": "导航结果",
33+
"go_to_result": "跳转到结果",
34+
"open_code_view": "打开代码视图",
35+
"open_docs": "打开文档"
1936
},
2037
"search": {
2138
"label": "搜索 npm 包",
2239
"placeholder": "搜索包…",
2340
"button": "搜索",
2441
"searching": "搜索中…",
2542
"found_packages": "共找到 {count} 个包",
43+
"found_packages_sorted": "正在排序前 {count} 个结果",
2644
"updating": "(更新中…)",
2745
"no_results": "未找到匹配“{query}”的包",
46+
"rate_limited": "已达到 npm 请求限制,请稍后再试",
2847
"title": "搜索",
2948
"title_search": "搜索:{search}",
3049
"title_packages": "搜索包",
@@ -35,6 +54,7 @@
3554
"claim_button": "声明“{name}”",
3655
"want_to_claim": "想要声明这个包名吗?",
3756
"start_typing": "输入以搜索软件包",
57+
"algolia_disclaimer": "由 Algolia 提供支持",
3858
"exact_match": "精确匹配",
3959
"suggestion": {
4060
"user": "用户",
@@ -62,8 +82,17 @@
6282
"sections": {
6383
"appearance": "外观",
6484
"display": "显示",
85+
"search": "搜索",
6586
"language": "语言"
6687
},
88+
"data_source": {
89+
"label": "数据来源",
90+
"description": "选择 npmx 从哪里获取搜索数据。单独的包页面始终直接使用 npm registry。",
91+
"npm": "npm Registry",
92+
"npm_description": "直接从 npm 官方注册表获取搜索、组织和用户列表。权威可靠,但速度可能较慢。",
93+
"algolia": "Algolia",
94+
"algolia_description": "使用 Algolia 来实现更快的搜索,适用于组织页和用户页。"
95+
},
6796
"relative_dates": "相对时间",
6897
"include_types": "在安装时包含 {'@'}types",
6998
"include_types_description": "为未提供类型定义的包自动添加 {'@'}types 包到安装命令",
@@ -390,7 +419,12 @@
390419
"date_range_multiline": "{start}\n到 {end}",
391420
"download_file": "下载 {fileType}",
392421
"toggle_annotator": "切换标注工具",
393-
"legend_estimation": "估算值"
422+
"legend_estimation": "估算值",
423+
"no_data": "无可用数据",
424+
"y_axis_label": "{granularity} {facet}",
425+
"items": {
426+
"downloads": "下载量"
427+
}
394428
}
395429
},
396430
"connector": {
@@ -796,7 +830,8 @@
796830
"create_account": "创建一个新账户",
797831
"connect_bluesky": "使用 Bluesky 账户登录",
798832
"what_is_atmosphere": "什么是 Atmosphere 账户?",
799-
"atmosphere_explanation": "{npmx} 使用 {atproto} 为其多项社交功能提供支持,让用户真正拥有自己的数据并使用一个账户登录所有兼容的应用。一旦创建账户,你便可以使用其他应用,例如 {bluesky} 和 {tangled}。"
833+
"atmosphere_explanation": "{npmx} 使用 {atproto} 为其多项社交功能提供支持,让用户真正拥有自己的数据并使用一个账户登录所有兼容的应用。一旦创建账户,你便可以使用其他应用,例如 {bluesky} 和 {tangled}。",
834+
"default_input_error": "请输入有效的 handle、DID 或完整的 PDS URL"
800835
}
801836
},
802837
"header": {
@@ -932,6 +967,9 @@
932967
"types_none": "",
933968
"vulnerabilities_summary": "{count}({critical} 严重/{high} 高)",
934969
"up_to_you": "由你决定!"
970+
},
971+
"trends": {
972+
"title": "每周下载量"
935973
}
936974
}
937975
},

lunaria/files/zh-CN.json

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,35 @@
1515
"docs": "文档",
1616
"source": "源码",
1717
"social": "社交媒体",
18-
"chat": "聊天"
18+
"chat": "聊天",
19+
"keyboard_shortcuts": "键盘快捷键"
20+
},
21+
"shortcuts": {
22+
"section": {
23+
"global": "全局",
24+
"search": "搜索",
25+
"package": ""
26+
},
27+
"focus_search": "聚焦搜索",
28+
"show_kbd_hints": "高亮键盘提示",
29+
"settings": "打开设置",
30+
"compare": "打开比较",
31+
"compare_from_package": "打开比较(使用当前包预填充)",
32+
"navigate_results": "导航结果",
33+
"go_to_result": "跳转到结果",
34+
"open_code_view": "打开代码视图",
35+
"open_docs": "打开文档"
1936
},
2037
"search": {
2138
"label": "搜索 npm 包",
2239
"placeholder": "搜索包…",
2340
"button": "搜索",
2441
"searching": "搜索中…",
2542
"found_packages": "共找到 {count} 个包",
43+
"found_packages_sorted": "正在排序前 {count} 个结果",
2644
"updating": "(更新中…)",
2745
"no_results": "未找到匹配“{query}”的包",
46+
"rate_limited": "已达到 npm 请求限制,请稍后再试",
2847
"title": "搜索",
2948
"title_search": "搜索:{search}",
3049
"title_packages": "搜索包",
@@ -35,6 +54,7 @@
3554
"claim_button": "声明“{name}”",
3655
"want_to_claim": "想要声明这个包名吗?",
3756
"start_typing": "输入以搜索软件包",
57+
"algolia_disclaimer": "由 Algolia 提供支持",
3858
"exact_match": "精确匹配",
3959
"suggestion": {
4060
"user": "用户",
@@ -62,8 +82,17 @@
6282
"sections": {
6383
"appearance": "外观",
6484
"display": "显示",
85+
"search": "搜索",
6586
"language": "语言"
6687
},
88+
"data_source": {
89+
"label": "数据来源",
90+
"description": "选择 npmx 从哪里获取搜索数据。单独的包页面始终直接使用 npm registry。",
91+
"npm": "npm Registry",
92+
"npm_description": "直接从 npm 官方注册表获取搜索、组织和用户列表。权威可靠,但速度可能较慢。",
93+
"algolia": "Algolia",
94+
"algolia_description": "使用 Algolia 来实现更快的搜索,适用于组织页和用户页。"
95+
},
6796
"relative_dates": "相对时间",
6897
"include_types": "在安装时包含 {'@'}types",
6998
"include_types_description": "为未提供类型定义的包自动添加 {'@'}types 包到安装命令",
@@ -390,7 +419,12 @@
390419
"date_range_multiline": "{start}\n到 {end}",
391420
"download_file": "下载 {fileType}",
392421
"toggle_annotator": "切换标注工具",
393-
"legend_estimation": "估算值"
422+
"legend_estimation": "估算值",
423+
"no_data": "无可用数据",
424+
"y_axis_label": "{granularity} {facet}",
425+
"items": {
426+
"downloads": "下载量"
427+
}
394428
}
395429
},
396430
"connector": {
@@ -796,7 +830,8 @@
796830
"create_account": "创建一个新账户",
797831
"connect_bluesky": "使用 Bluesky 账户登录",
798832
"what_is_atmosphere": "什么是 Atmosphere 账户?",
799-
"atmosphere_explanation": "{npmx} 使用 {atproto} 为其多项社交功能提供支持,让用户真正拥有自己的数据并使用一个账户登录所有兼容的应用。一旦创建账户,你便可以使用其他应用,例如 {bluesky} 和 {tangled}。"
833+
"atmosphere_explanation": "{npmx} 使用 {atproto} 为其多项社交功能提供支持,让用户真正拥有自己的数据并使用一个账户登录所有兼容的应用。一旦创建账户,你便可以使用其他应用,例如 {bluesky} 和 {tangled}。",
834+
"default_input_error": "请输入有效的 handle、DID 或完整的 PDS URL"
800835
}
801836
},
802837
"header": {
@@ -932,6 +967,9 @@
932967
"types_none": "",
933968
"vulnerabilities_summary": "{count}({critical} 严重/{high} 高)",
934969
"up_to_you": "由你决定!"
970+
},
971+
"trends": {
972+
"title": "每周下载量"
935973
}
936974
}
937975
},

0 commit comments

Comments
 (0)