Skip to content

Commit d255e1e

Browse files
HoshinoSuzumiautofix-ci[bot]9romise
authored
feat(i18n): improve translations in settings section and add i18n section for zh-CN (#375)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Vida Xie <vida_2020@163.com>
1 parent fa1d83d commit d255e1e

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

i18n/locales/zh-CN.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,37 @@
4444
"back": "返回"
4545
},
4646
"settings": {
47+
"title": "设置",
48+
"tagline": "定制你的 npmx 体验",
49+
"meta_description": "通过主题、语言和显示偏好,定制你的 npmx.dev 体验。",
50+
"sections": {
51+
"appearance": "外观",
52+
"display": "显示",
53+
"language": "语言"
54+
},
4755
"relative_dates": "相对时间",
56+
"relative_dates_description": "显示 \"3天前\" 而不是完整日期",
4857
"include_types": "在安装时包含 {'@'}types",
49-
"language": "语言",
50-
"help_translate": "帮助翻译 npmx",
58+
"include_types_description": "在未类型化的包的安装命令中添加 {'@'}types 包",
59+
"hide_platform_packages": "在搜索结果中隐藏平台特定的包",
60+
"hide_platform_packages_description": "从结果中隐藏诸如 {'@'}esbuild/linux-x64 之类的原生二进制包",
5161
"theme": "主题",
5262
"theme_dark": "深色",
5363
"theme_light": "浅色",
5464
"theme_system": "跟随系统",
55-
"accent_colors": "强调色"
65+
"language": "语言",
66+
"help_translate": "帮助翻译 npmx",
67+
"accent_colors": "强调色",
68+
"clear_accent": "清除强调色",
69+
"translation_progress": "翻译进度"
70+
},
71+
"i18n": {
72+
"missing_keys": "{count} 项缺少翻译",
73+
"copy_keys": "复制键",
74+
"show_more_keys": "显示其它 {count} 条...",
75+
"contribute_hint": "补充缺失的键值以帮助改进翻译。",
76+
"edit_on_github": "在 GitHub 上编辑",
77+
"view_guide": "翻译指南"
5678
},
5779
"common": {
5880
"loading": "加载中...",

lunaria/files/zh-CN.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,37 @@
4444
"back": "返回"
4545
},
4646
"settings": {
47+
"title": "设置",
48+
"tagline": "定制你的 npmx 体验",
49+
"meta_description": "通过主题、语言和显示偏好,定制你的 npmx.dev 体验。",
50+
"sections": {
51+
"appearance": "外观",
52+
"display": "显示",
53+
"language": "语言"
54+
},
4755
"relative_dates": "相对时间",
56+
"relative_dates_description": "显示 \"3天前\" 而不是完整日期",
4857
"include_types": "在安装时包含 {'@'}types",
49-
"language": "语言",
50-
"help_translate": "帮助翻译 npmx",
58+
"include_types_description": "在未类型化的包的安装命令中添加 {'@'}types 包",
59+
"hide_platform_packages": "在搜索结果中隐藏平台特定的包",
60+
"hide_platform_packages_description": "从结果中隐藏诸如 {'@'}esbuild/linux-x64 之类的原生二进制包",
5161
"theme": "主题",
5262
"theme_dark": "深色",
5363
"theme_light": "浅色",
5464
"theme_system": "跟随系统",
55-
"accent_colors": "强调色"
65+
"language": "语言",
66+
"help_translate": "帮助翻译 npmx",
67+
"accent_colors": "强调色",
68+
"clear_accent": "清除强调色",
69+
"translation_progress": "翻译进度"
70+
},
71+
"i18n": {
72+
"missing_keys": "{count} 项缺少翻译",
73+
"copy_keys": "复制键",
74+
"show_more_keys": "显示其它 {count} 条...",
75+
"contribute_hint": "补充缺失的键值以帮助改进翻译。",
76+
"edit_on_github": "在 GitHub 上编辑",
77+
"view_guide": "翻译指南"
5678
},
5779
"common": {
5880
"loading": "加载中...",

0 commit comments

Comments
 (0)