Files
mayi_coco/extensions/funplay-cocos-mcp-plugin/i18n/zh.js
T

296 lines
18 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use strict';
module.exports = {
language_code: 'zh',
title: 'Funplay Cocos MCP',
panel_server: 'MCP 服务',
panel_tool_exposure: '工具开放范围',
panel_settings: 'MCP 设置',
panel_project_skills: '项目 Skills',
panel_contact: '联系反馈',
menu_server: 'MCP 服务',
menu_tool_exposure: '工具开放范围',
menu_settings: 'MCP 设置',
menu_project_skills: '项目 Skills',
menu_contact: '联系反馈',
'common.dismiss': '关闭',
'common.action_completed': '操作已完成。',
'common.action_failed': '操作未完成。',
'common.copy_failed': '复制失败,请检查剪贴板权限后重试。',
'skills_manager.file_details': '位置与备份',
'common.unknown': '未知',
'common.clear': '清除',
'common.yes': '是',
'common.no': '否',
'common.enable': '启用',
'common.disable': '禁用',
'common.select': '选择',
'common.save': '保存',
'common.apply': '应用',
'common.delete': '删除',
'common.export': '导出',
'common.import': '导入',
'common.refresh': '刷新',
'common.copy_url': '复制地址',
'common.copy_health_curl': '复制健康检查命令',
'common.copy_tools_curl': '复制工具列表命令',
'common.configuration_saved': '配置已保存。',
'common.save_failed': '保存配置失败:{error}',
'common.error': '错误:{error}',
'common.nothing_to_copy': '没有可复制的内容。',
'dashboard.version': '版本 {version}',
'dashboard.running': '运行中',
'dashboard.stopped': '已停止',
'dashboard.project': '项目',
'dashboard.port_fallback': '端口回退:{requested} -> {actual}',
'dashboard.attached_listener': '已连接现有监听服务',
'dashboard.service': '服务',
'dashboard.server_port': '服务端口',
'dashboard.server_host': '监听地址',
'dashboard.apply_host': '应用地址',
'dashboard.host_hint': '填写本机拥有的地址;127.0.0.1 仅供本机使用。启用服务时,“应用地址”会重试启动。网络/通配地址可能开放未认证的编辑器访问,仅在可信网络使用。修改后请重新配置客户端。',
'dashboard.host_env_hint': 'COCOS_MCP_HOST 环境变量覆盖了项目监听地址。请修改该环境变量并重启 Cocos Creator;修改 JSON 文件无法覆盖它。',
'dashboard.start_error': 'MCP 无法监听 {host}:{port}:{error}。插件仍可使用。请检查监听地址(本机访问可用 127.0.0.1),再“应用地址”或“重启”。未自动回退到其他监听地址。',
'dashboard.derived_port_hint': '由当前项目路径生成稳定端口({port})。',
'dashboard.fixed_port_hint': '当前使用固定端口,可切换为项目独立端口。',
'dashboard.client_setup': '一键配置 MCP',
'dashboard.configure_short': '配置',
'dashboard.configure_skills': '配置 + Skills',
'client.status': '状态',
'client.needs_reconfigure': '需要改用项目专属地址',
'client.legacy_endpoint': '此客户端仍使用未绑定项目的旧地址。请重新配置 MCP,再重连或重启客户端;旧地址允许读取,写入需核对过的项目/编辑器标识。已有 Skills 和本地修改会保留。',
'client.legacy_unverified': '旧地址缺少可核实的归属记录。请先启动当前项目的 MCP 服务,或手动检查条目;不会覆盖未经核实的地址。',
'client.config_read_error': '客户端配置需要检查:{error}',
'client.reconfigure': '重新配置 MCP',
'client.reconfigure_skills': '重新配置 MCP + Skills',
'client.skills_setup_hint': '“配置 + Skills”会安装缺失的内置 Skill,已有内容保留。',
'client.trae_project_hint': '在 Trae 中打开此 Cocos 项目目录,并在“设置 > MCP”启用“项目级 MCP”以加载 .trae/mcp.json。项目 Skills 安装至 .trae/skills。',
'client.antigravity_project_hint': '在 Antigravity 中打开此 Cocos 项目目录,并重新加载 MCP 配置。项目配置位于 .agents/mcp_config.json,项目 Skills 安装至 .agents/skills。',
'client.pi_project_hint': '请在此 Cocos 项目目录启动 Pi 1.0 或更高版本,并按提示信任项目。Pi 会读取 .pi/mcp.json 和 .agents/skills。已信任的会话可执行 /reload,再用 /mcp 查看连接。',
'client.configuring': '正在配置…',
'client.configure_complete': '客户端配置已保存,重新连接客户端即可使用。',
'client.patch_generated': '配置文件已生成(需 --patch 加载)',
'client.patch_configure_complete': 'DSH 配置文件已保存,不会自动加载。',
'client.patch_setup_complete': 'DSH 配置文件已保存,安装了 {count} 个 Skill;配置需手动加载。',
'client.patch_launch_hint': '请在此 Cocos 项目目录启动 DSH(或给现有启动命令追加相同的 --patch 参数):\n{command}',
'client.setup_complete': '配置已保存,安装了 {count} 个 Skill。请重新连接客户端以加载变更。',
'client.setup_review': '配置已保存,安装了 {count} 个 Skill。需要检查的已有 Skill 保持不变,可到“项目 Skills”更新。',
'client.configure_failed': '配置失败:{error}',
'client.setup_partial': '客户端配置已保存,但 Skills 安装未完成:{error}',
'settings.updates': '扩展更新',
'settings.console_logs': '控制台日志',
'settings.print_mcp_logs': '打印 MCP 日志',
'settings.print_mcp_logs_hint': '立即控制 MCP 向 Cocos 控制台打印的信息、警告和错误;不影响最近活动、内部诊断记录或项目脚本日志。',
'installation.short_duplicate': '检测到项目与全局副本,详情见设置。',
'installation.short_error': '全局安装需要检查,详情见设置。',
'dashboard.use_project_port': '使用项目独立端口',
'dashboard.pin_current_port': '固定当前端口',
'client.fallback_blocked': '当前使用临时回退端口。请先“固定当前端口”或“使用项目独立端口”,再配置客户端。',
'dashboard.tool_exposure': '工具开放范围',
'dashboard.enable_server': '启用 MCP 服务',
'dashboard.restart': '重启',
'dashboard.check_updates': '检查更新',
'dashboard.open_release': '打开发布页',
'dashboard.install_update': '安装更新',
'dashboard.edit_tools': '编辑工具',
'dashboard.settings': '设置',
'dashboard.recent_activity': '最近活动',
'activity.tool_fallback': '工具',
'activity.no_calls': '暂无 MCP 调用。',
'activity.log_badge': '记录',
'activity.result_preview': '查看结果 JSON · 已限量并脱敏',
'activity.call_completed': '调用完成。',
'activity.execution_completed': '脚本执行完成。',
'activity.execution_failed': '脚本执行失败。',
'activity.execution_logs': '执行日志',
'activity.no_execution_logs': '本次调用没有 console 输出。',
'activity.return_value': '返回值',
'activity.result': '结果',
'activity.context_editor': '编辑器',
'activity.context_scene': '场景',
'activity.items_omitted': '另有 {count} 项未展示(预览上限)。',
'activity.logs_omitted': '另有 {count} 条日志未展示(采集上限)。',
'activity.field_message': '消息',
'activity.field_summary': '摘要',
'activity.field_sceneName': '场景',
'activity.field_projectName': '项目',
'activity.field_cocosVersion': 'Cocos 版本',
'activity.field_running': '运行中',
'activity.field_childCount': '子节点数',
'activity.field_nodeCount': '节点数',
'activity.field_count': '数量',
'activity.field_name': '名称',
'activity.field_toolProfile': '工具范围',
'activity.field_port': '端口',
'activity.field_path': '路径',
'activity.field_url': '地址',
'dashboard.project_skills': '项目 Skills',
'dashboard.mcp_client': 'MCP 客户端',
'dashboard.configure_client': '一键配置',
'dashboard.preview_config': '预览所选配置',
'updates.reload_scheduled': '将在 {delay} 毫秒后重新加载',
'updates.reload_not_scheduled': '未安排重新加载:{reason}',
'updates.installed': '已安装 {version}。{reload}。备份:{backup}',
'updates.check_failed': '检查更新失败:{error}',
'updates.published': ',发布于 {date}',
'updates.available': '发现新版本:{version}{published}。{status}',
'updates.ready': '可以安装。',
'updates.incomplete': '发布资源不完整,请手动安装。',
'updates.auto_check_failed': '自动检查更新失败:{error}',
'updates.none_installable': '当前没有可安装的更新。',
'updates.confirm_title': '现在安装 Funplay Cocos MCP {version} 吗?',
'updates.confirm_body': '更新程序将校验 SHA256SUMS.txt、备份当前扩展、替换插件文件,并在 Cocos 支持时重新加载扩展。',
'tools.title': '工具开放范围',
'tools.hint': '精确控制 MCP 客户端可以看到哪些工具。保存后会自动重启正在运行的服务。',
'tools.edit_list': '编辑工具列表',
'tools.profile_core': '核心',
'tools.profile_full': '全部',
'tools.profile_custom': '自定义',
'tools.tools': '工具',
'tools.select_all': '全部选择',
'tools.use_default': '使用默认值',
'tools.named_profiles': '命名配置',
'tools.profile_name': '配置名称',
'tools.raw_lists': '原始包含 / 排除列表',
'tools.enabled_categories': '启用的分类',
'tools.disabled_categories': '禁用的分类',
'tools.enabled_tools': '启用的工具',
'tools.disabled_tools': '禁用的工具',
'tools.saved_profile': '配置:{name}',
'tools.full_hint': 'full 会开放全部已注册工具。',
'tools.custom_hint': 'custom 使用自定义包含和排除规则。',
'tools.core_hint': 'core 让客户端工具列表保持精简。',
'tools.dashboard_summary': '当前:{profile}{saved} | {enabled}/{total} 个工具。{hint}',
'tools.exposure_summary': '当前:{profile}{saved} | {enabled}/{total} 个工具({source})',
'tools.with_overrides': '包含自定义规则',
'tools.default_list': '默认列表',
'tools.profile_name_required': '必须填写配置名称。',
'tools.no_saved_profiles': '没有已保存的配置',
'tools.no_profile_selected': '请先选择一个已保存的配置。',
'tools.profiles_copied': '工具配置已复制到剪贴板。',
'tools.no_profiles_found': '没有找到可导入的配置。',
'tools.import_failed': '导入配置失败:{error}',
'tools.exposure_saved': '工具开放范围已保存:{name} 已{state}。',
'tools.enabled': '启用',
'tools.disabled': '禁用',
'settings.title': 'MCP 设置',
'settings.hint': '管理当前项目的界面、传输、JavaScript 安全和本地诊断默认值。',
'settings.interface': '界面',
'settings.language': '语言',
'settings.language_auto': '跟随 Cocos Creator',
'settings.language_zh': '中文',
'settings.language_en': 'English',
'settings.language_auto_hint': '面板正在跟随 Cocos Creator 当前语言({language})。',
'settings.language_override_hint': '当前项目的面板语言已固定为{language}。',
'settings.language_name_en': '英文',
'settings.language_name_zh': '中文',
'settings.safety': '安全',
'settings.javascript_safety': '默认启用 JavaScript 安全检查',
'settings.javascript_safety_hint': 'execute_javascript 未传 safety_checks 时使用此默认值。可信本地调用仍可显式传 safety_checks=false 跳过检查。',
'settings.transport': '传输',
'settings.sessions': 'MCP 会话',
'settings.sessions_hint': '默认使用直接 HTTP。需要会话感知 Streamable HTTP 的客户端可启用 MCP-Session-Id 处理。',
'settings.diagnostics': '诊断',
'community.title': '联系反馈',
'community.hint': '欢迎交流使用经验、分享建议,或联系作者反馈问题。',
'community.author_email': '作者邮箱',
'community.copy_email': '复制邮箱',
'community.email_copied': '已复制作者邮箱。',
'community.qq_group': 'QQ 群',
'community.copy_group': '复制群号',
'community.group_copied': '已复制 QQ 群号:1108522331。',
'community.feedback_hint': '反馈问题时,请附上 Cocos Creator 版本、插件版本及复现步骤,方便排查。',
'installation.title': '所有项目',
'installation.hint': '为当前 Cocos Creator 版本安装一份经过校验的 Release,之后由该版本打开的项目都可以自动加载。',
'installation.install_all': '为所有项目安装',
'installation.update_global': '更新全局安装',
'installation.installed_all': '已对所有项目可用',
'installation.copy_path': '复制全局路径',
'installation.path_copied': '全局扩展路径已复制。',
'installation.path': '全局路径:{path}',
'installation.scope_global': '全局',
'installation.scope_project': '当前项目',
'installation.scope_external': '开发或外部目录',
'installation.current_scope': '当前安装范围:{scope}。',
'installation.global_missing': '尚未发现全局安装。',
'installation.global_ready': '全局版本 {version} 已对使用 Cocos Creator {editorVersion} 打开的项目可用。',
'installation.global_invalid': '全局路径被无效包占用:{error}',
'installation.duplicate': '当前项目仍有一份扩展:{path},在本项目保持打开时它可能优先。请先在干净项目中确认全局副本,再移除或禁用项目副本。',
'installation.restart_required': '请重新打开当前项目或重启 Cocos Creator,以启用全局副本。',
'installation.already_available': '扩展已经对使用当前 Creator 版本打开的项目可用。',
'installation.confirm_title': '为使用当前 Creator 版本的所有项目安装 Funplay Cocos MCP 吗?',
'installation.confirm_body': '将下载最新 Release,使用 SHA256SUMS.txt 校验后安装到 {path},并让 Cocos Creator 扫描和注册它。当前项目副本会继续运行;重新打开项目后切换到全局副本。',
'client.no_targets': '没有可用的客户端目标。',
'client.configured': '已配置',
'client.not_configured': '未配置',
'client.select_first': '请先选择一个客户端目标。',
'client.url_copied': '服务地址已复制到剪贴板。',
'client.health_copied': '健康检查 curl 命令已复制。',
'client.tools_copied': '工具列表 curl 命令已复制。',
'skills_manager.title': '项目 Skills',
'skills_manager.hint': '按所选客户端管理项目 Skills,并避免静默覆盖本地修改。',
'skills_manager.unsupported': '暂不支持为此客户端自动安装 Skills,请在上方选择已支持的客户端。',
'skills_manager.read_error': '无法读取此客户端的 Skills:{error}',
'skills_manager.legacy_path': '旧路径:{path}。更新时会备份并安装到新目录,原文件将保留。',
'skills_manager.recommended': 'Funplay 内置 Skills',
'skills_manager.installed': '已安装的项目 Skills',
'skills_manager.install': '安装 Skill',
'skills_manager.update': '备份并更新',
'skills_manager.current_action': '已是最新版',
'skills_manager.view_changes': '查看差异',
'skills_manager.restore_backup': '恢复最新备份',
'skills_manager.reveal': '在文件夹中显示',
'skills_manager.diff_preview': '差异预览',
'skills_manager.status_missing': '未安装',
'skills_manager.status_current': '已是最新版',
'skills_manager.status_update_available': '有可用更新',
'skills_manager.status_modified': '存在本地修改',
'skills_manager.detail_missing': '安装内置模板 v{latest},让 AI 客户端可以使用这套项目指引。',
'skills_manager.detail_current': '内置模板 v{latest} 已安装,且没有检测到本地修改。',
'skills_manager.detail_update_available': '模板可从 v{installed} 更新到 v{latest},更新前会先备份现有文件。',
'skills_manager.detail_modified': '检测到本地修改。用模板 v{latest} 替换前请先查看差异。',
'skills_manager.path': 'Skill 路径:{path}',
'skills_manager.latest_backup': '共 {count} 个备份,最新:{path}',
'skills_manager.no_backup': '暂无备份。',
'skills_manager.no_built_in_skills': '当前没有可用的内置项目 Skill。',
'skills_manager.no_skills': '当前项目尚未安装 Skill。',
'skills_manager.official_badge': '内置',
'skills_manager.invalid_format': '旧格式或 SKILL.md frontmatter 无效',
'skills_manager.notice_missing': '尚未安装推荐的项目 Skill,请打开“项目 Skills”进行安装。',
'skills_manager.notice_update': '项目 Skill 有可用更新(v{installed} -> v{latest}),请打开“项目 Skills”查看。',
'skills_manager.notice_modified': '推荐项目 Skill 存在本地修改,请打开“项目 Skills”比较差异或备份后更新。',
'skills_manager.notice_summary': '{total} 个内置项目 Skill 中有 {count} 个需要安装、检查或更新,请打开“项目 Skills”进行管理。',
'skills_manager.notice_missing_list': '未安装({count}):{names}',
'skills_manager.notice_update_list': '有可用更新({count}):{names}',
'skills_manager.notice_modified_list': '存在本地修改({count}):{names}',
'skills_manager.manage': '管理 Skills',
'skills_manager.diff_summary': '差异已生成:新增 {added} 行,删除 {removed} 行。',
'skills_manager.already_current': '这个内置项目 Skill 已是最新版。',
'skills_manager.confirm_update_title': '更新这个内置项目 Skill?',
'skills_manager.confirm_update_body': '更新前会备份 {path},然后用最新版模板替换。',
'skills_manager.confirm_modified_title': '替换这个存在本地修改的项目 Skill?',
'skills_manager.confirm_modified_body': '将先备份 {path} 的本地修改,再用最新版官方模板替换。如有需要,请先查看差异。',
'skills_manager.confirm_restore_title': '恢复最新的项目 Skill 备份?',
'skills_manager.confirm_restore_body': '将恢复 {path},当前 Skill 也会先备份。',
'skills_manager.create_custom': '创建自定义 Skill',
'skills_manager.skill_name': 'Skill 名称',
'skills_manager.skill_name_placeholder': 'scene-qa',
'skills_manager.skill_title': '标题',
'skills_manager.skill_title_placeholder': '场景质量检查',
'skills_manager.skill_description': '触发说明',
'skills_manager.skill_instructions': '操作指令',
'skills_manager.create': '创建 Skill',
'skills_manager.skill_name_required': '必须填写 Skill 名称。',
'errors.refresh_failed': '刷新失败:{error}',
};