296 lines
18 KiB
JavaScript
Executable File
296 lines
18 KiB
JavaScript
Executable File
'use strict';
|
||
|
||
module.exports = {
|
||
language_code: 'en',
|
||
title: 'Funplay Cocos MCP',
|
||
panel_server: 'MCP Server',
|
||
panel_tool_exposure: 'Tool Exposure',
|
||
panel_settings: 'MCP Settings',
|
||
panel_project_skills: 'Project Skills',
|
||
panel_contact: 'Contact & Feedback',
|
||
menu_server: 'MCP Server',
|
||
menu_tool_exposure: 'Tool Exposure',
|
||
menu_settings: 'MCP Settings',
|
||
menu_project_skills: 'Project Skills',
|
||
menu_contact: 'Contact & Feedback',
|
||
|
||
'common.dismiss': 'Dismiss',
|
||
'common.action_completed': 'Done.',
|
||
'common.action_failed': 'The action did not complete.',
|
||
'common.copy_failed': 'Could not copy. Check clipboard permissions and try again.',
|
||
'skills_manager.file_details': 'Location & backups',
|
||
'common.unknown': 'Unknown',
|
||
'common.clear': 'Clear',
|
||
'common.yes': 'Yes',
|
||
'common.no': 'No',
|
||
'common.enable': 'Enable',
|
||
'common.disable': 'Disable',
|
||
'common.select': 'Select',
|
||
'common.save': 'Save',
|
||
'common.apply': 'Apply',
|
||
'common.delete': 'Delete',
|
||
'common.export': 'Export',
|
||
'common.import': 'Import',
|
||
'common.refresh': 'Refresh',
|
||
'common.copy_url': 'Copy URL',
|
||
'common.copy_health_curl': 'Copy Health Curl',
|
||
'common.copy_tools_curl': 'Copy Tools Curl',
|
||
'common.configuration_saved': 'Configuration saved.',
|
||
'common.save_failed': 'Save config failed: {error}',
|
||
'common.error': 'Error: {error}',
|
||
'common.nothing_to_copy': 'Nothing to copy.',
|
||
|
||
'dashboard.version': 'Version {version}',
|
||
'dashboard.running': 'Running',
|
||
'dashboard.stopped': 'Stopped',
|
||
'dashboard.project': 'Project',
|
||
'dashboard.port_fallback': 'Port fallback: {requested} -> {actual}',
|
||
'dashboard.attached_listener': 'Attached listener',
|
||
'dashboard.service': 'Service',
|
||
'dashboard.server_port': 'Server Port',
|
||
'dashboard.server_host': 'Server Host',
|
||
'dashboard.apply_host': 'Apply Host',
|
||
'dashboard.host_hint': 'Use an address assigned to this machine; 127.0.0.1 is local only. Apply Host retries when MCP is enabled. Network/wildcard addresses can expose unauthenticated editor access; use only on a trusted network. Reconfigure clients after changing Host.',
|
||
'dashboard.host_env_hint': 'COCOS_MCP_HOST overrides the project Host. Change that environment variable and restart Cocos Creator; editing the JSON file cannot override it.',
|
||
'dashboard.start_error': 'MCP could not listen on {host}:{port}: {error}. The extension is still available. Check Server Host (use 127.0.0.1 for local access), then Apply Host or Restart. No automatic Host fallback was made.',
|
||
'dashboard.derived_port_hint': 'Derived from this project’s path ({port}).',
|
||
'dashboard.fixed_port_hint': 'Fixed port. Project-derived ports help keep projects separate.',
|
||
'dashboard.client_setup': 'One-Click MCP Configuration',
|
||
'dashboard.configure_short': 'Configure',
|
||
'dashboard.configure_skills': 'Configure + Skills',
|
||
'client.status': 'Status',
|
||
'client.needs_reconfigure': 'Reconnect with a project-bound URL',
|
||
'client.legacy_endpoint': 'This client still uses an unbound URL. Reconfigure MCP, then reconnect/restart the client; legacy URLs allow reads but writes need a verified project/Editor context. Existing Skills and local edits are preserved.',
|
||
'client.legacy_unverified': 'This old endpoint has no verified ownership record. Start this project’s MCP server first, or review the entry manually; no unverified endpoint will be overwritten.',
|
||
'client.config_read_error': 'Client configuration needs review: {error}',
|
||
'client.reconfigure': 'Reconfigure MCP',
|
||
'client.reconfigure_skills': 'Reconfigure MCP + Skills',
|
||
'client.skills_setup_hint': 'Configure + Skills installs missing built-ins. Existing Skills are kept.',
|
||
'client.trae_project_hint': 'In Trae, open this Cocos project folder and enable Project MCP in Settings > MCP to load .trae/mcp.json. Project Skills are installed in .trae/skills.',
|
||
'client.antigravity_project_hint': 'Open this Cocos project folder in Antigravity and reload its MCP configuration. It reads .agents/mcp_config.json and discovers project Skills in .agents/skills.',
|
||
'client.pi_project_hint': 'Start Pi 1.0+ in this Cocos project directory and trust the project when prompted. Pi reads .pi/mcp.json and .agents/skills. In a trusted session, run /reload and check /mcp.',
|
||
'client.configuring': 'Configuring…',
|
||
'client.configure_complete': 'Client configured. Reconnect it to load this project.',
|
||
'client.patch_generated': 'Overlay generated (load with --patch)',
|
||
'client.patch_configure_complete': 'DSH overlay saved. It is not loaded automatically.',
|
||
'client.patch_setup_complete': 'DSH overlay saved; {count} Skill(s) installed. Load the overlay explicitly.',
|
||
'client.patch_launch_hint': 'Start DSH from this Cocos project directory (or add the same --patch argument to your existing launch command):\n{command}',
|
||
'client.setup_complete': 'Client configured; {count} Skill(s) installed. Reconnect the client to load changes.',
|
||
'client.setup_review': 'Client configured; {count} Skill(s) installed. Existing Skills needing review were kept — open Project Skills to update them.',
|
||
'client.configure_failed': 'Configuration failed: {error}',
|
||
'client.setup_partial': 'Client configuration was saved, but Skills setup did not finish: {error}',
|
||
'settings.updates': 'Extension Updates',
|
||
'settings.console_logs': 'Console Logs',
|
||
'settings.print_mcp_logs': 'Print MCP logs',
|
||
'settings.print_mcp_logs_hint': 'Immediately controls MCP messages, warnings, and errors printed to the Cocos console. Recent Activity, internal diagnostics, and project-script logs are unaffected.',
|
||
'installation.short_duplicate': 'Project and global copies detected. See Settings for details.',
|
||
'installation.short_error': 'Global installation needs attention. See Settings for details.',
|
||
'dashboard.use_project_port': 'Use Per-Project Port',
|
||
'dashboard.pin_current_port': 'Pin Current Port',
|
||
'client.fallback_blocked': 'A temporary fallback port is active. Pin Current Port or Use Per-Project Port before configuring the client.',
|
||
'dashboard.tool_exposure': 'Tool Exposure',
|
||
'dashboard.enable_server': 'Enable MCP Server',
|
||
'dashboard.restart': 'Restart',
|
||
'dashboard.check_updates': 'Check Updates',
|
||
'dashboard.open_release': 'Open Release',
|
||
'dashboard.install_update': 'Install Update',
|
||
'dashboard.edit_tools': 'Edit Tools',
|
||
'dashboard.settings': 'Settings',
|
||
'dashboard.recent_activity': 'Recent Activity',
|
||
'activity.tool_fallback': 'tool',
|
||
'activity.no_calls': 'No recent MCP calls.',
|
||
'activity.log_badge': 'Entry',
|
||
'activity.result_preview': 'Result JSON · size-limited and redacted',
|
||
'activity.call_completed': 'Call completed.',
|
||
'activity.execution_completed': 'Script executed.',
|
||
'activity.execution_failed': 'Script execution failed.',
|
||
'activity.execution_logs': 'Execution logs',
|
||
'activity.no_execution_logs': 'No console output in this call.',
|
||
'activity.return_value': 'Return value',
|
||
'activity.result': 'Result',
|
||
'activity.context_editor': 'Editor',
|
||
'activity.context_scene': 'Scene',
|
||
'activity.items_omitted': '{count} more entries omitted (preview limit).',
|
||
'activity.logs_omitted': '{count} more log entries omitted (capture limit).',
|
||
'activity.field_message': 'Message',
|
||
'activity.field_summary': 'Summary',
|
||
'activity.field_sceneName': 'Scene',
|
||
'activity.field_projectName': 'Project',
|
||
'activity.field_cocosVersion': 'Cocos version',
|
||
'activity.field_running': 'Running',
|
||
'activity.field_childCount': 'Children',
|
||
'activity.field_nodeCount': 'Nodes',
|
||
'activity.field_count': 'Count',
|
||
'activity.field_name': 'Name',
|
||
'activity.field_toolProfile': 'Tool profile',
|
||
'activity.field_port': 'Port',
|
||
'activity.field_path': 'Path',
|
||
'activity.field_url': 'URL',
|
||
'dashboard.project_skills': 'Project Skills',
|
||
'dashboard.mcp_client': 'MCP Client',
|
||
'dashboard.configure_client': 'One-Click Configure',
|
||
'dashboard.preview_config': 'Preview selected config',
|
||
|
||
'updates.reload_scheduled': 'Reload scheduled in {delay}ms',
|
||
'updates.reload_not_scheduled': 'Reload not scheduled: {reason}',
|
||
'updates.installed': 'Installed {version}. {reload}. Backup: {backup}',
|
||
'updates.check_failed': 'Update check failed: {error}',
|
||
'updates.published': ', published {date}',
|
||
'updates.available': 'Update available: {version}{published}. {status}',
|
||
'updates.ready': 'Ready to install.',
|
||
'updates.incomplete': 'Release assets are incomplete; install manually.',
|
||
'updates.auto_check_failed': 'Automatic update check failed: {error}',
|
||
'updates.none_installable': 'No installable update is available.',
|
||
'updates.confirm_title': 'Install Funplay Cocos MCP {version} now?',
|
||
'updates.confirm_body': 'The updater will verify SHA256SUMS.txt, back up the current extension, replace the package files, and reload the extension when Cocos supports it.',
|
||
|
||
'tools.title': 'Tool Exposure',
|
||
'tools.hint': 'Edit exactly which tools MCP clients can see. Changes restart the running server automatically.',
|
||
'tools.edit_list': 'Edit Tool List',
|
||
'tools.profile_core': 'Core',
|
||
'tools.profile_full': 'Full',
|
||
'tools.profile_custom': 'Custom',
|
||
'tools.tools': 'Tools',
|
||
'tools.select_all': 'Select All',
|
||
'tools.use_default': 'Use Default',
|
||
'tools.named_profiles': 'Named Profiles',
|
||
'tools.profile_name': 'Profile name',
|
||
'tools.raw_lists': 'Raw Include / Exclude Lists',
|
||
'tools.enabled_categories': 'Enabled Categories',
|
||
'tools.disabled_categories': 'Disabled Categories',
|
||
'tools.enabled_tools': 'Enabled Tools',
|
||
'tools.disabled_tools': 'Disabled Tools',
|
||
'tools.saved_profile': 'Profile: {name}',
|
||
'tools.full_hint': 'full exposes every registered tool.',
|
||
'tools.custom_hint': 'custom uses your include/exclude rules.',
|
||
'tools.core_hint': 'core keeps the client tool list focused.',
|
||
'tools.dashboard_summary': 'Active: {profile}{saved} | {enabled}/{total} tools. {hint}',
|
||
'tools.exposure_summary': 'Active: {profile}{saved} | {enabled}/{total} tools ({source})',
|
||
'tools.with_overrides': 'with overrides',
|
||
'tools.default_list': 'default list',
|
||
'tools.profile_name_required': 'Profile name is required.',
|
||
'tools.no_saved_profiles': 'No saved profiles',
|
||
'tools.no_profile_selected': 'Select a saved profile first.',
|
||
'tools.profiles_copied': 'Copied tool profiles to clipboard.',
|
||
'tools.no_profiles_found': 'No profiles found.',
|
||
'tools.import_failed': 'Import profiles failed: {error}',
|
||
'tools.exposure_saved': 'Tool exposure saved: {name} {state}.',
|
||
'tools.enabled': 'enabled',
|
||
'tools.disabled': 'disabled',
|
||
|
||
'settings.title': 'MCP Settings',
|
||
'settings.hint': 'Project-level defaults for interface, transport, JavaScript safety, and local diagnostics.',
|
||
'settings.interface': 'Interface',
|
||
'settings.language': 'Language',
|
||
'settings.language_auto': 'Follow Cocos Creator',
|
||
'settings.language_zh': 'Chinese',
|
||
'settings.language_en': 'English',
|
||
'settings.language_auto_hint': 'The panel follows the current Cocos Creator language ({language}).',
|
||
'settings.language_override_hint': 'The panel language is fixed to {language} for this project.',
|
||
'settings.language_name_en': 'English',
|
||
'settings.language_name_zh': 'Chinese',
|
||
'settings.safety': 'Safety',
|
||
'settings.javascript_safety': 'Default JavaScript safety checks',
|
||
'settings.javascript_safety_hint': 'Default for execute_javascript calls when safety_checks is omitted. Explicit safety_checks=false can still bypass this for trusted local calls.',
|
||
'settings.transport': 'Transport',
|
||
'settings.sessions': 'MCP Sessions',
|
||
'settings.sessions_hint': 'Direct HTTP is the default. Sessions add MCP-Session-Id handling for clients that require session-aware Streamable HTTP.',
|
||
'settings.diagnostics': 'Diagnostics',
|
||
'community.title': 'Contact & Feedback',
|
||
'community.hint': 'Questions, ideas, or feedback? Get in touch with the author or join the community.',
|
||
'community.author_email': 'Author Email',
|
||
'community.copy_email': 'Copy Email',
|
||
'community.email_copied': 'Copied author email.',
|
||
'community.qq_group': 'QQ Group',
|
||
'community.copy_group': 'Copy Group Number',
|
||
'community.group_copied': 'Copied QQ group number: 1108522331.',
|
||
'community.feedback_hint': 'For problem reports, include your Cocos Creator version, plugin version, and steps to reproduce.',
|
||
|
||
'installation.title': 'All Projects',
|
||
'installation.hint': 'Install one checksum-verified release for this Cocos Creator version. Projects opened with this version can then load it automatically.',
|
||
'installation.install_all': 'Install for All Projects',
|
||
'installation.update_global': 'Update Global Install',
|
||
'installation.installed_all': 'Available to All Projects',
|
||
'installation.copy_path': 'Copy Global Path',
|
||
'installation.path_copied': 'Copied the global extension path.',
|
||
'installation.path': 'Global path: {path}',
|
||
'installation.scope_global': 'global',
|
||
'installation.scope_project': 'project',
|
||
'installation.scope_external': 'development/external',
|
||
'installation.current_scope': 'Current install: {scope}.',
|
||
'installation.global_missing': 'No global install was found.',
|
||
'installation.global_ready': 'Global version {version} is available to projects opened with Cocos Creator {editorVersion}.',
|
||
'installation.global_invalid': 'The global path is occupied by an invalid package: {error}',
|
||
'installation.duplicate': 'A project copy also exists at {path} and may have priority while this project is open. Remove or disable it after verifying the global copy in a clean project.',
|
||
'installation.restart_required': 'Reopen this project or restart Cocos Creator to activate the global copy.',
|
||
'installation.already_available': 'The extension is already available to projects opened with this Creator version.',
|
||
'installation.confirm_title': 'Install Funplay Cocos MCP for all projects using this Creator version?',
|
||
'installation.confirm_body': 'The latest release will be downloaded, verified with SHA256SUMS.txt, and installed at {path}. Cocos Creator will scan and register it. The current project copy will stay active; reopen the project to switch to the global copy.',
|
||
|
||
'client.no_targets': 'No client targets available.',
|
||
'client.configured': 'Configured',
|
||
'client.not_configured': 'Not configured',
|
||
'client.select_first': 'Select a client target first.',
|
||
'client.url_copied': 'Copied URL to clipboard.',
|
||
'client.health_copied': 'Copied health curl command.',
|
||
'client.tools_copied': 'Copied tools curl command.',
|
||
|
||
|
||
'skills_manager.title': 'Project Skills',
|
||
'skills_manager.hint': 'Manage project Skills for the selected client without silently replacing local changes.',
|
||
'skills_manager.unsupported': 'Automatic Skills installation is not supported for this client yet. Choose a supported client above.',
|
||
'skills_manager.read_error': 'Unable to read this client’s Skills: {error}',
|
||
'skills_manager.legacy_path': 'Legacy location: {path}. Updating backs it up and installs to the new location; the original file is retained.',
|
||
'skills_manager.recommended': 'Built-in Funplay Skills',
|
||
'skills_manager.installed': 'Installed Project Skills',
|
||
'skills_manager.install': 'Install Skill',
|
||
'skills_manager.update': 'Back Up & Update',
|
||
'skills_manager.current_action': 'Up to Date',
|
||
'skills_manager.view_changes': 'View Changes',
|
||
'skills_manager.restore_backup': 'Restore Latest Backup',
|
||
'skills_manager.reveal': 'Show in Folder',
|
||
'skills_manager.diff_preview': 'Diff Preview',
|
||
'skills_manager.status_missing': 'Not Installed',
|
||
'skills_manager.status_current': 'Up to Date',
|
||
'skills_manager.status_update_available': 'Update Available',
|
||
'skills_manager.status_modified': 'Locally Modified',
|
||
'skills_manager.detail_missing': 'Install built-in template v{latest} to make this guidance available to AI clients.',
|
||
'skills_manager.detail_current': 'Built-in template v{latest} is installed and has no local changes.',
|
||
'skills_manager.detail_update_available': 'Template v{installed} can be updated to v{latest}. The installed file will be backed up first.',
|
||
'skills_manager.detail_modified': 'Local changes were detected. Review the diff before replacing this file with template v{latest}.',
|
||
'skills_manager.path': 'Skill path: {path}',
|
||
'skills_manager.latest_backup': '{count} backup(s). Latest: {path}',
|
||
'skills_manager.no_backup': 'No backups yet.',
|
||
'skills_manager.no_built_in_skills': 'No built-in project skills are available.',
|
||
'skills_manager.no_skills': 'No project skills are installed.',
|
||
'skills_manager.official_badge': 'Built-in',
|
||
'skills_manager.invalid_format': 'Legacy or invalid SKILL.md frontmatter',
|
||
'skills_manager.notice_missing': 'The recommended project Skill is not installed. Open Project Skills to install it.',
|
||
'skills_manager.notice_update': 'A project Skill update is available (v{installed} -> v{latest}). Open Project Skills to review it.',
|
||
'skills_manager.notice_modified': 'The recommended project Skill has local changes. Open Project Skills to compare or back it up before updating.',
|
||
'skills_manager.notice_summary': '{count} of {total} built-in project Skill(s) need installation, review, or an update. Open Project Skills to manage them.',
|
||
'skills_manager.notice_missing_list': 'Not installed ({count}): {names}',
|
||
'skills_manager.notice_update_list': 'Updates available ({count}): {names}',
|
||
'skills_manager.notice_modified_list': 'Locally modified ({count}): {names}',
|
||
'skills_manager.manage': 'Manage Skills',
|
||
'skills_manager.diff_summary': 'Diff ready: {added} added line(s), {removed} removed line(s).',
|
||
'skills_manager.already_current': 'This built-in project Skill is already up to date.',
|
||
'skills_manager.confirm_update_title': 'Update this built-in project Skill?',
|
||
'skills_manager.confirm_update_body': 'The current file at {path} will be backed up before the latest template replaces it.',
|
||
'skills_manager.confirm_modified_title': 'Replace this locally modified project Skill?',
|
||
'skills_manager.confirm_modified_body': 'Local changes at {path} will be backed up, then the latest official template will replace the file. Review the diff first if needed.',
|
||
'skills_manager.confirm_restore_title': 'Restore the latest project Skill backup?',
|
||
'skills_manager.confirm_restore_body': 'Restore {path}. The current Skill will also be backed up first.',
|
||
'skills_manager.create_custom': 'Create Custom Skill',
|
||
'skills_manager.skill_name': 'Skill name',
|
||
'skills_manager.skill_name_placeholder': 'scene-qa',
|
||
'skills_manager.skill_title': 'Title',
|
||
'skills_manager.skill_title_placeholder': 'Scene QA',
|
||
'skills_manager.skill_description': 'Trigger description',
|
||
'skills_manager.skill_instructions': 'Instructions',
|
||
'skills_manager.create': 'Create Skill',
|
||
'skills_manager.skill_name_required': 'Skill name is required.',
|
||
|
||
'errors.refresh_failed': 'Refresh failed: {error}',
|
||
};
|