From d566e30d0d420c2b8b826c715c5d25dbfa3b73fd Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Tue, 27 Jan 2026 23:17:43 +0800 Subject: [PATCH 1/5] feat(i18n): add zh-CN support --- i18n/locales/zh-CN.json | 496 ++++++++++++++++++++++++++++++++++++++++ nuxt.config.ts | 5 +- 2 files changed, 500 insertions(+), 1 deletion(-) create mode 100644 i18n/locales/zh-CN.json diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json new file mode 100644 index 0000000000..5ac9f8476d --- /dev/null +++ b/i18n/locales/zh-CN.json @@ -0,0 +1,496 @@ +{ + "seo": { + "home": { + "title": "npmx - 为 npm 包打造的更佳浏览工具", + "description": "为 npm 包打造的更佳浏览工具。通过更现代化的用户界面搜索,浏览,并探索软件包。" + } + }, + "tagline": "为 npm 包打造的更佳浏览工具", + "non_affiliation_disclaimer": "不与 npm, Inc. 有任何隶属关系", + "trademark_disclaimer": "npm 是 npm, Inc. 的注册商标。本网站不与 npm, Inc. 有任何隶属关系。", + "footer": { + "source": "源码", + "social": "社媒", + "chat": "聊天" + }, + "search": { + "label": "搜索 npm 包", + "placeholder": "搜索包...", + "button": "搜索", + "clear": "清除搜索", + "searching": "搜索中...", + "found_packages": "找到 {count} 个包", + "updating": "(更新中...)", + "no_results": "没有找到包:\"{query}\"", + "not_taken": "{name} 尚未被占用", + "claim_prompt": "在 npm 上获取", + "claim_button": "获取 \"{name}\"", + "want_to_claim": "想要获取这个包名吗?", + "start_typing": "输入以搜索软件包" + }, + "nav": { + "popular_packages": "流行的包", + "search": "搜索", + "settings": "设置" + }, + "settings": { + "relative_dates": "相对日期", + "include_types": "在安装时包含 {'@'}types", + "language": "语言", + "help_translate": "帮助翻译 npmx" + }, + "common": { + "loading": "加载中...", + "loading_more": "加载更多中...", + "loading_packages": "加载包中...", + "end_of_results": "没有更多结果", + "try_again": "再试一次", + "close": "关闭", + "retry": "重试", + "copy": "复制", + "copied": "已复制!", + "show_more": "展示更多", + "warnings": "警告:", + "go_back_home": "返回首页", + "view_on_npm": "在npm上查看", + "per_week": "/ 周", + "sort": { + "name": "名称", + "role": "角色", + "members": "成员" + }, + "scroll_to_top": "回到顶部" + }, + "package": { + "not_found": "没有找到包", + "not_found_message": "找不到这个包。", + "no_description": "没有提供描述", + "show_full_description": "展示全部描述", + "not_latest": "(不是最新)", + "verified_provenance": "已验证的来源", + "view_permalink": "查看这个版本的链接", + "deprecation": { + "package": "这个包已经被废弃。", + "version": "这个版本已经被废弃。", + "no_reason": "没有提供原因" + }, + "stats": { + "license": "许可证", + "weekly": "每周", + "deps": "依赖", + "install_size": "安装大小", + "updated": "最近更新", + "view_download_trends": "查看下载趋势", + "view_dependency_graph": "查看依赖图", + "inspect_dependency_tree": "查看依赖树" + }, + "links": { + "repo": "仓库", + "homepage": "主页", + "issues": "缺陷", + "forks": "复刻", + "jsr": "jsr", + "code": "代码" + }, + "install": { + "title": "安装", + "pm_label": "包管理器", + "copy_command": "复制安装命令", + "view_types": "查看 {package}" + }, + "readme": { + "title": "Readme", + "no_readme": "没有可用的 README。", + "view_on_github": "在 GitHub 上查看" + }, + "keywords_title": "关键词", + "compatibility": "兼容性", + "card": { + "publisher": "发布者", + "updated": "更新", + "weekly_downloads": "每周下载", + "keywords": "关键词" + }, + "versions": { + "title": "版本", + "collapse": "折叠 {tag}", + "expand": "展开 {tag}", + "collapse_other": "折叠其他版本", + "expand_other": "展开其他版本", + "collapse_major": "折叠主版本 {major}", + "expand_major": "展开主版本 {major}", + "other_versions": "其他版本", + "more_tagged": "{count}个更多标签", + "all_covered": "所有版本均已包含于上方标签中。", + "deprecated_title": "{version} (已弃用)" + }, + "dependencies": { + "title": "依赖({count}个)", + "list_label": "包依赖", + "show_all": "显示全部 {count} 个依赖", + "optional": "可选" + }, + "peer_dependencies": { + "title": "伴生依赖({count}个)", + "list_label": "包 peer 依赖", + "show_all": "显示全部{count}个伴生依赖" + }, + "optional_dependencies": { + "title": "可选依赖({count}个)", + "list_label": "包可选依赖", + "show_all": "显示全部{count}个可选依赖" + }, + "maintainers": { + "title": "维护者", + "list_label": "包维护者", + "you": "(你)", + "via": "来自 {teams}", + "remove_owner": "移除 {name} 为所有者", + "username_to_add": "要添加为所有者的用户名", + "username_placeholder": "用户名...", + "add_button": "添加", + "cancel_add": "取消添加所有者", + "add_owner": "+ 添加所有者" + }, + "downloads": { + "title": "每周下载", + "date_range": "{start} 到 {end}", + "analyze": "分析下载量", + "modal_title": "下载量", + "granularity": "粒度", + "granularity_daily": "每日", + "granularity_weekly": "每周", + "granularity_monthly": "每月", + "granularity_yearly": "每年", + "start_date": "开始", + "end_date": "结束", + "no_data": "没有下载数据", + "loading": "加载中...", + "y_axis_label": "{granularity} 下载" + }, + "install_scripts": { + "title": "安装脚本", + "script_label": "(脚本)", + "npx_packages": "{count} 个 npx 包", + "currently": "当前 {version}" + }, + "playgrounds": { + "title": "尝试一下", + "choose": "选择 playground" + }, + "metrics": { + "esm": "只支持 ES Modules", + "cjs": "只支持 CommonJS", + "dual": "同时支持 CommonJS 和 ES Modules", + "unknown_format": "未知模块格式", + "ts_included": "包含 TypeScript 类型", + "types_from": "类型来自 {package}" + }, + "license": { + "view_spdx": "在 SPDX 上查看许可证文本" + }, + "vulnerabilities": { + "no_description": "没有可用的描述", + "found": "{count} 个漏洞", + "no_summary": "没有总结", + "view_details": "查看漏洞详情", + "severity": { + "critical": "严重", + "high": "高", + "moderate": "中等", + "low": "低" + } + }, + "access": { + "title": "团队权限", + "refresh": "刷新团队权限", + "list_label": "团队权限列表", + "owner": "所有者", + "rw": "读写(rw)", + "ro": "只读(ro)", + "revoke_access": "撤销 {name} 的访问权限", + "no_access": "未配置团队权限", + "select_team_label": "选择团队", + "loading_teams": "加载团队中...", + "select_team": "选择团队", + "permission_label": "权限级别", + "permission": { + "read_only": "只读", + "read_write": "读写" + }, + "grant_button": "授权", + "cancel_grant": "取消授权", + "grant_access": "+ 授权团队访问" + }, + "list": { + "filter_label": "筛选包", + "filter_placeholder": "筛选包...", + "sort_label": "排序包", + "showing_count": "正在展示 {total} 中的 {filtered} 个包" + }, + "skeleton": { + "loading": "加载包详情", + "license": "许可证", + "weekly": "每周", + "size": "大小", + "deps": "依赖", + "updated": "更新", + "install": "安装", + "readme": "Readme", + "maintainers": "维护者", + "keywords": "关键词", + "versions": "版本", + "dependencies": "依赖" + }, + "sort": { + "downloads": "最多下载的", + "updated": "最近更新的", + "name_asc": "名称(A-Z)", + "name_desc": "名称(Z-A)" + } + }, + "connector": { + "status": { + "connecting": "连接中...", + "connected_as": "已连接为 {'@'}{user}", + "connected": "已连接", + "connect_cli": "连接本地 CLI", + "aria_connecting": "连接到本地连接器中", + "aria_connected": "已连接到本地连接器", + "aria_click_to_connect": "点击连接到本地连接器", + "avatar_alt": "{user} 的头像" + }, + "modal": { + "title": "本地连接器", + "close_modal": "关闭对话框", + "close": "关闭", + "connected": "已连接", + "logged_in_as": "登录为 {'@'}{user}", + "connected_hint": "现在你可以通过 Web UI 管理包和组织。", + "disconnect": "断开连接", + "run_hint": "在你的机器上运行连接器以启用管理功能。", + "copy_command": "复制命令", + "copied": "已复制", + "paste_token": "然后将令牌粘贴如下连接:", + "token_label": "令牌", + "token_placeholder": "粘贴令牌...", + "advanced": "高级选项", + "port_label": "端口", + "warning": "警告", + "warning_text": "这允许 npmx 访问你的 npm CLI。仅连接你信任的站点。", + "connect": "连接", + "connecting": "连接中..." + } + }, + "operations": { + "queue": { + "title": "操作队列", + "clear_all": "清除所有", + "refresh": "刷新操作", + "empty": "没有操作排队", + "empty_hint": "从包或组织页面添加操作", + "active_label": "活动操作", + "otp_required": "需要 OTP", + "otp_prompt": "输入 OTP 继续", + "otp_placeholder": "输入 OTP 代码...", + "otp_label": "一次性密码", + "retry_otp": "使用 OTP 重试", + "retrying": "重试中...", + "approve_operation": "批准操作", + "remove_operation": "移除操作", + "approve_all": "批准所有", + "execute": "执行", + "executing": "执行中...", + "log": "日志", + "log_label": "已完成操作日志", + "remove_from_log": "从日志中移除" + } + }, + "org": { + "teams": { + "title": "团队", + "refresh": "刷新团队", + "filter_label": "筛选团队", + "filter_placeholder": "筛选团队...", + "sort_by": "按排序", + "loading": "加载团队...", + "no_teams": "没有找到团队", + "list_label": "组织团队", + "delete_team": "删除团队 {name}", + "member_count": "{count} 个成员", + "members_of": "团队 {team} 的成员", + "no_members": "没有成员", + "remove_user": "从团队 {user} 中移除", + "username_to_add": "要添加到 {team} 的用户名", + "username_placeholder": "用户名...", + "add_button": "添加", + "cancel_add_user": "取消添加用户", + "add_member": "+ 添加成员", + "team_name_label": "团队名称", + "team_name_placeholder": "团队名称...", + "create_button": "创建", + "no_match": "没有团队匹配 \"{query}\"", + "cancel_create": "取消创建团队", + "create_team": "+ 创建团队" + }, + "members": { + "title": "成员", + "refresh": "刷新成员", + "filter_label": "筛选成员", + "filter_placeholder": "筛选成员中...", + "filter_by_role": "按角色筛选", + "filter_by_team": "按团队筛选", + "all_teams": "所有团队", + "sort_by": "按排序", + "loading": "加载成员...", + "no_members": "没有找到成员", + "list_label": "组织成员", + "change_role_for": "更改 {name} 的角色", + "remove_from_org": "从组织中移除 {name}", + "view_team": "查看 {team} 团队", + "no_match": "没有成员匹配你的筛选条件", + "username_label": "用户名", + "username_placeholder": "用户名...", + "role_label": "角色", + "role": { + "all": "所有", + "developer": "开发者", + "admin": "管理员", + "owner": "所有者" + }, + "team_label": "团队", + "no_team": "没有团队", + "add_button": "添加", + "cancel_add": "取消添加成员", + "add_member": "+ 添加成员" + }, + "public_packages": "{count} 个公开包", + "page": { + "packages_title": "软件包", + "members_tab": "成员", + "teams_tab": "团队", + "no_packages": "没有找到公开包", + "no_packages_hint": "这个组织可能不存在或没有公开包。", + "failed_to_load": "加载组织包失败", + "no_match": "没有包匹配 \"{query}\"", + "not_found": "组织未找到", + "not_found_message": "组织 \"{'@'}{name}\" 在 npm 上不存在", + "filter_placeholder": "筛选 {count} 个包..." + } + }, + "user": { + "combobox": { + "add_to_org_hint": "(也会添加到组织)", + "press_enter_to_add": "按 Enter 添加 {'@'}{username}", + "default_placeholder": "用户名...", + "suggestions_label": "用户建议" + }, + "page": { + "packages_title": "软件包", + "no_packages": "没有找到公开包", + "no_packages_hint": "这个用户可能不存在或没有公开包。", + "failed_to_load": "加载用户包失败", + "no_match": "没有包匹配 \"{query}\"", + "filter_placeholder": "筛选 {count} 个包..." + }, + "orgs_page": { + "title": "组织", + "back_to_profile": "返回个人资料", + "connect_required": "连接本地 CLI 以查看你的组织。", + "connect_hint_prefix": "运行", + "connect_hint_suffix": "以开始。", + "own_orgs_only": "你只能查看自己的组织。", + "view_your_orgs": "查看你的组织", + "loading": "加载组织中...", + "empty": "未找到组织。", + "empty_hint": "已从你的范围包中检测到组织。", + "count": "{count} 个组织", + "packages_count": "{count} 个包" + } + }, + "claim": { + "modal": { + "title": "声明包名", + "close_modal": "关闭对话框", + "close": "关闭", + "success": "包已声明!", + "success_detail": "{name}{'@'}0.0.0 已发布到 npm。", + "success_hint": "你现在可以使用 npm publish 发布新版本到这个包。", + "view_package": "查看包", + "invalid_name": "无效的包名:", + "available": "这个名称可用!", + "taken": "这个名称已被占用。", + "similar_warning": "存在相似的包 — npm 可能会拒绝这个名称:", + "related": "相关包:", + "scope_warning_title": "考虑使用一个限定范围的包", + "scope_warning_text": "未限定范围的包名是共享资源。当你计划发布并持续维护一个包时,方可声明此类名称。对于个人或组织项目,请使用限定范围的包名,如 {'@'}{username}/{name}。", + "connect_required": "连接到本地连接器以声明这个包名。", + "connect_button": "连接到连接器", + "publish_hint": "这将发布一个最小的占位符包。", + "preview_json": "预览 package.json", + "claim_button": "声明包名", + "publishing": "发布中...", + "retry": "重试", + "checking": "检查可用性中...", + "failed_to_check": "检查名称可用性失败", + "failed_to_claim": "声明包名失败" + } + }, + "code": { + "files_label": "文件", + "no_files": "这个目录中没有文件", + "select_version": "选择版本", + "root": "根目录", + "lines": "{count} 行", + "toggle_tree": "切换文件树", + "close_tree": "关闭文件树", + "copy_link": "复制链接", + "raw": "原始文件", + "view_raw": "查看原始文件", + "file_too_large": "文件过大,无法预览", + "file_size_warning": "{size} 超出了 500KB 的语法高亮限制", + "load_anyway": "仍要加载", + "failed_to_load": "加载文件失败", + "unavailable_hint": "文件可能太大或不可用", + "version_required": "需要版本来浏览代码", + "go_to_package": "跳转到包", + "loading_tree": "加载文件树中...", + "failed_to_load_tree": "加载此包版本的文件失败", + "back_to_package": "返回包", + "table": { + "name": "名称", + "size": "大小" + } + }, + "badges": { + "provenance": { + "verified": "已验证", + "verified_title": "已验证的来源", + "verified_via": "已验证:通过 {provider} 发布" + }, + "jsr": { + "title": "也适用于 JSR", + "label": "jsr" + } + }, + "header": { + "home": "npmx 主页", + "github": "GitHub", + "packages": "包", + "packages_dropdown": { + "title": "你的包", + "loading": "加载中...", + "error": "加载包失败", + "empty": "没有找到包", + "view_all": "查看全部" + }, + "orgs": "组织", + "orgs_dropdown": { + "title": "你的组织", + "loading": "加载中...", + "error": "加载组织失败", + "empty": "没有找到组织", + "view_all": "查看全部" + } + } +} diff --git a/nuxt.config.ts b/nuxt.config.ts index 0bf531befd..852dad201a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -155,6 +155,9 @@ export default defineNuxtConfig({ strategy: 'no_prefix', detectBrowserLanguage: false, langDir: 'locales', - locales: [{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' }], + locales: [ + { code: 'en', language: 'en-US', name: 'English', file: 'en.json' }, + { code: 'zh-CN', language: 'zh-CN', name: '简体中文', file: 'zh-CN.json' }, + ], }, }) From 8acd1f9173bd46b65620bb811dd94ccec2481dd2 Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Tue, 27 Jan 2026 23:31:50 +0800 Subject: [PATCH 2/5] chore: update --- i18n/locales/zh-CN.json | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 5ac9f8476d..e3f3c300a0 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -21,7 +21,7 @@ "searching": "搜索中...", "found_packages": "找到 {count} 个包", "updating": "(更新中...)", - "no_results": "没有找到包:\"{query}\"", + "no_results": "未找到与 \"{query}\" 匹配的包", "not_taken": "{name} 尚未被占用", "claim_prompt": "在 npm 上获取", "claim_button": "获取 \"{name}\"", @@ -29,7 +29,7 @@ "start_typing": "输入以搜索软件包" }, "nav": { - "popular_packages": "流行的包", + "popular_packages": "热门软件包", "search": "搜索", "settings": "设置" }, @@ -70,8 +70,8 @@ "verified_provenance": "已验证的来源", "view_permalink": "查看这个版本的链接", "deprecation": { - "package": "这个包已经被废弃。", - "version": "这个版本已经被废弃。", + "package": "这个包已经被弃用。", + "version": "这个版本已经被弃用。", "no_reason": "没有提供原因" }, "stats": { @@ -87,7 +87,7 @@ "links": { "repo": "仓库", "homepage": "主页", - "issues": "缺陷", + "issues": "议题", "forks": "复刻", "jsr": "jsr", "code": "代码" @@ -108,7 +108,7 @@ "card": { "publisher": "发布者", "updated": "更新", - "weekly_downloads": "每周下载", + "weekly_downloads": "每周下载量", "keywords": "关键词" }, "versions": { @@ -145,15 +145,15 @@ "list_label": "包维护者", "you": "(你)", "via": "来自 {teams}", - "remove_owner": "移除 {name} 为所有者", - "username_to_add": "要添加为所有者的用户名", + "remove_owner": "移除 {name} 为拥有者", + "username_to_add": "要添加为拥有者的用户名", "username_placeholder": "用户名...", "add_button": "添加", - "cancel_add": "取消添加所有者", - "add_owner": "+ 添加所有者" + "cancel_add": "取消添加拥有者", + "add_owner": "+ 添加拥有者" }, "downloads": { - "title": "每周下载", + "title": "每周下载量", "date_range": "{start} 到 {end}", "analyze": "分析下载量", "modal_title": "下载量", @@ -166,7 +166,7 @@ "end_date": "结束", "no_data": "没有下载数据", "loading": "加载中...", - "y_axis_label": "{granularity} 下载" + "y_axis_label": "{granularity} 下载量" }, "install_scripts": { "title": "安装脚本", @@ -205,7 +205,7 @@ "title": "团队权限", "refresh": "刷新团队权限", "list_label": "团队权限列表", - "owner": "所有者", + "owner": "拥有者", "rw": "读写(rw)", "ro": "只读(ro)", "revoke_access": "撤销 {name} 的访问权限", @@ -220,7 +220,7 @@ }, "grant_button": "授权", "cancel_grant": "取消授权", - "grant_access": "+ 授权团队访问" + "grant_access": "+ 授予团队权限" }, "list": { "filter_label": "筛选包", @@ -337,7 +337,7 @@ "title": "成员", "refresh": "刷新成员", "filter_label": "筛选成员", - "filter_placeholder": "筛选成员中...", + "filter_placeholder": "筛选成员...", "filter_by_role": "按角色筛选", "filter_by_team": "按团队筛选", "all_teams": "所有团队", @@ -356,7 +356,7 @@ "all": "所有", "developer": "开发者", "admin": "管理员", - "owner": "所有者" + "owner": "拥有者" }, "team_label": "团队", "no_team": "没有团队", @@ -403,7 +403,7 @@ "view_your_orgs": "查看你的组织", "loading": "加载组织中...", "empty": "未找到组织。", - "empty_hint": "已从你的范围包中检测到组织。", + "empty_hint": "已根据您限定范围的包名中检测到组织。", "count": "{count} 个组织", "packages_count": "{count} 个包" } From 798ff7f42540bd1907419931e7540e4835385b35 Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Tue, 27 Jan 2026 23:51:33 +0800 Subject: [PATCH 3/5] Update zh-CN.json --- i18n/locales/zh-CN.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index e3f3c300a0..176c5fc391 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -23,9 +23,9 @@ "updating": "(更新中...)", "no_results": "未找到与 \"{query}\" 匹配的包", "not_taken": "{name} 尚未被占用", - "claim_prompt": "在 npm 上获取", - "claim_button": "获取 \"{name}\"", - "want_to_claim": "想要获取这个包名吗?", + "claim_prompt": "在 npm 上声明", + "claim_button": "声明 \"{name}\"", + "want_to_claim": "想要声明这个包名吗?", "start_typing": "输入以搜索软件包" }, "nav": { @@ -34,7 +34,7 @@ "settings": "设置" }, "settings": { - "relative_dates": "相对日期", + "relative_dates": "相对时间", "include_types": "在安装时包含 {'@'}types", "language": "语言", "help_translate": "帮助翻译 npmx" From 6d6d7c0b54409bee92dd2b26d6e6dce615c2b7a9 Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Tue, 27 Jan 2026 23:57:31 +0800 Subject: [PATCH 4/5] Update zh-CN.json --- i18n/locales/zh-CN.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 176c5fc391..e9ea5e016c 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -131,9 +131,9 @@ "optional": "可选" }, "peer_dependencies": { - "title": "伴生依赖({count}个)", - "list_label": "包 peer 依赖", - "show_all": "显示全部{count}个伴生依赖" + "title": "对等依赖({count}个)", + "list_label": "包对等依赖", + "show_all": "显示全部{count}个对等依赖" }, "optional_dependencies": { "title": "可选依赖({count}个)", @@ -143,7 +143,7 @@ "maintainers": { "title": "维护者", "list_label": "包维护者", - "you": "(你)", + "you": "(您)", "via": "来自 {teams}", "remove_owner": "移除 {name} 为拥有者", "username_to_add": "要添加为拥有者的用户名", @@ -266,9 +266,9 @@ "close": "关闭", "connected": "已连接", "logged_in_as": "登录为 {'@'}{user}", - "connected_hint": "现在你可以通过 Web UI 管理包和组织。", + "connected_hint": "现在您可以通过 Web UI 管理包和组织。", "disconnect": "断开连接", - "run_hint": "在你的机器上运行连接器以启用管理功能。", + "run_hint": "在您的机器上运行连接器以启用管理功能。", "copy_command": "复制命令", "copied": "已复制", "paste_token": "然后将令牌粘贴如下连接:", @@ -277,7 +277,7 @@ "advanced": "高级选项", "port_label": "端口", "warning": "警告", - "warning_text": "这允许 npmx 访问你的 npm CLI。仅连接你信任的站点。", + "warning_text": "这将允许 npmx 访问您的 npm CLI。请仅连接您信任的站点。", "connect": "连接", "connecting": "连接中..." } @@ -348,7 +348,7 @@ "change_role_for": "更改 {name} 的角色", "remove_from_org": "从组织中移除 {name}", "view_team": "查看 {team} 团队", - "no_match": "没有成员匹配你的筛选条件", + "no_match": "没有成员匹配您的筛选条件", "username_label": "用户名", "username_placeholder": "用户名...", "role_label": "角色", @@ -396,11 +396,11 @@ "orgs_page": { "title": "组织", "back_to_profile": "返回个人资料", - "connect_required": "连接本地 CLI 以查看你的组织。", + "connect_required": "连接本地 CLI 以查看您的组织。", "connect_hint_prefix": "运行", "connect_hint_suffix": "以开始。", - "own_orgs_only": "你只能查看自己的组织。", - "view_your_orgs": "查看你的组织", + "own_orgs_only": "您只能查看自己的组织。", + "view_your_orgs": "查看您的组织", "loading": "加载组织中...", "empty": "未找到组织。", "empty_hint": "已根据您限定范围的包名中检测到组织。", @@ -415,7 +415,7 @@ "close": "关闭", "success": "包已声明!", "success_detail": "{name}{'@'}0.0.0 已发布到 npm。", - "success_hint": "你现在可以使用 npm publish 发布新版本到这个包。", + "success_hint": "您现在可以使用 npm publish 发布新版本到这个包。", "view_package": "查看包", "invalid_name": "无效的包名:", "available": "这个名称可用!", @@ -423,7 +423,7 @@ "similar_warning": "存在相似的包 — npm 可能会拒绝这个名称:", "related": "相关包:", "scope_warning_title": "考虑使用一个限定范围的包", - "scope_warning_text": "未限定范围的包名是共享资源。当你计划发布并持续维护一个包时,方可声明此类名称。对于个人或组织项目,请使用限定范围的包名,如 {'@'}{username}/{name}。", + "scope_warning_text": "未限定范围的包名是共享资源。当您计划发布并持续维护一个包时,方可声明此类名称。对于个人或组织项目,请使用限定范围的包名,如 {'@'}{username}/{name}。", "connect_required": "连接到本地连接器以声明这个包名。", "connect_button": "连接到连接器", "publish_hint": "这将发布一个最小的占位符包。", @@ -478,7 +478,7 @@ "github": "GitHub", "packages": "包", "packages_dropdown": { - "title": "你的包", + "title": "您的包", "loading": "加载中...", "error": "加载包失败", "empty": "没有找到包", @@ -486,7 +486,7 @@ }, "orgs": "组织", "orgs_dropdown": { - "title": "你的组织", + "title": "您的组织", "loading": "加载中...", "error": "加载组织失败", "empty": "没有找到组织", From 46b82cf6818f4208f1d959e4f2ca59013efec2b8 Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Wed, 28 Jan 2026 00:04:43 +0800 Subject: [PATCH 5/5] Update zh-CN.json --- i18n/locales/zh-CN.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index e9ea5e016c..f643cd5633 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -122,7 +122,7 @@ "other_versions": "其他版本", "more_tagged": "{count}个更多标签", "all_covered": "所有版本均已包含于上方标签中。", - "deprecated_title": "{version} (已弃用)" + "deprecated_title": "{version}(已弃用)" }, "dependencies": { "title": "依赖({count}个)", @@ -133,12 +133,12 @@ "peer_dependencies": { "title": "对等依赖({count}个)", "list_label": "包对等依赖", - "show_all": "显示全部{count}个对等依赖" + "show_all": "显示全部 {count} 个对等依赖" }, "optional_dependencies": { "title": "可选依赖({count}个)", "list_label": "包可选依赖", - "show_all": "显示全部{count}个可选依赖" + "show_all": "显示全部 {count} 个可选依赖" }, "maintainers": { "title": "维护者", @@ -271,7 +271,7 @@ "run_hint": "在您的机器上运行连接器以启用管理功能。", "copy_command": "复制命令", "copied": "已复制", - "paste_token": "然后将令牌粘贴如下连接:", + "paste_token": "再在下方粘贴令牌以连接:", "token_label": "令牌", "token_placeholder": "粘贴令牌...", "advanced": "高级选项", @@ -287,9 +287,9 @@ "title": "操作队列", "clear_all": "清除所有", "refresh": "刷新操作", - "empty": "没有操作排队", + "empty": "没有排队中的操作", "empty_hint": "从包或组织页面添加操作", - "active_label": "活动操作", + "active_label": "运行中的操作", "otp_required": "需要 OTP", "otp_prompt": "输入 OTP 继续", "otp_placeholder": "输入 OTP 代码...", @@ -302,7 +302,7 @@ "execute": "执行", "executing": "执行中...", "log": "日志", - "log_label": "已完成操作日志", + "log_label": "已完成的操作日志", "remove_from_log": "从日志中移除" } },