e469178a6b
* feat: 配置文件增加未保存提示弹窗 * fix: 移除unsavedChangesDialog插件使用组件方式实现弹窗
130 lines
4.6 KiB
JSON
130 lines
4.6 KiB
JSON
{
|
|
"title": "Configuration",
|
|
"subtitle": "Manage system configuration and settings",
|
|
"editor": {
|
|
"visual": "Visual Editor",
|
|
"code": "Code Editor",
|
|
"revertCode": "Revert to Previous Code",
|
|
"applyConfig": "Apply This Configuration",
|
|
"applyTip": "`Apply This Configuration` will stage and apply the configuration to the visual editor. To save, you need to click the save button in the bottom right corner."
|
|
},
|
|
"actions": {
|
|
"save": "Save Configuration",
|
|
"delete": "Delete This Item",
|
|
"add": "Add",
|
|
"reset": "Reset to Default",
|
|
"export": "Export Configuration",
|
|
"import": "Import Configuration",
|
|
"validate": "Validate Configuration"
|
|
},
|
|
"help": {
|
|
"documentation": "Official Documentation",
|
|
"support": "Join Group for Help",
|
|
"helpText": "Don't understand the configuration? Please see {documentation} or {support}.",
|
|
"helpPrefix": "Don't understand the configuration? Please see",
|
|
"helpMiddle": "or",
|
|
"helpSuffix": "."
|
|
},
|
|
"messages": {
|
|
"configApplied": "Configuration successfully applied. To save, you need to click the save button in the bottom right corner.",
|
|
"configApplyError": "Configuration not applied, JSON format error.",
|
|
"unsavedChangesNotice": "You have unsaved configuration changes. Click the save button in the bottom-right corner to apply them.",
|
|
"saveSuccess": "Configuration saved successfully",
|
|
"saveError": "Failed to save configuration",
|
|
"loadError": "Failed to load configuration",
|
|
"deleteSuccess": "Deleted successfully",
|
|
"deleteError": "Failed to delete",
|
|
"updateSuccess": "Updated successfully",
|
|
"updateError": "Failed to update"
|
|
},
|
|
"sections": {
|
|
"general": "General Settings",
|
|
"advanced": "Advanced Settings",
|
|
"security": "Security Settings",
|
|
"appearance": "Appearance Settings",
|
|
"notification": "Notification Settings"
|
|
},
|
|
"general": {
|
|
"botName": "Bot Name",
|
|
"language": "Interface Language",
|
|
"timezone": "Timezone",
|
|
"autoSave": "Auto Save",
|
|
"debugMode": "Debug Mode"
|
|
},
|
|
"advanced": {
|
|
"logLevel": "Log Level",
|
|
"maxConnections": "Max Connections",
|
|
"timeout": "Timeout",
|
|
"retryAttempts": "Retry Attempts",
|
|
"cacheSize": "Cache Size"
|
|
},
|
|
"security": {
|
|
"apiKey": "API Key",
|
|
"allowedHosts": "Allowed Hosts",
|
|
"rateLimit": "Rate Limit",
|
|
"encryption": "Encryption Settings"
|
|
},
|
|
"configSelection": {
|
|
"selectConfig": "Select Configuration",
|
|
"normalConfig": "Basic",
|
|
"systemConfig": "System"
|
|
},
|
|
"search": {
|
|
"placeholder": "Search config items (key/description/hint)",
|
|
"noResult": "No matching config items found"
|
|
},
|
|
"configManagement": {
|
|
"title": "Configuration Management",
|
|
"description": "AstrBot supports separate configuration files for different bots. The `default` configuration is used by default.",
|
|
"newConfig": "New Configuration",
|
|
"editConfig": "Edit Configuration",
|
|
"manageConfigs": "Manage Configurations...",
|
|
"configName": "Name",
|
|
"fillConfigName": "Enter configuration name",
|
|
"confirmDelete": "Are you sure you want to delete the configuration \"{name}\"? This action cannot be undone.",
|
|
"pleaseEnterName": "Please enter a configuration name",
|
|
"createFailed": "Failed to create new configuration",
|
|
"deleteFailed": "Failed to delete configuration",
|
|
"updateFailed": "Failed to update configuration"
|
|
},
|
|
"buttons": {
|
|
"cancel": "Cancel",
|
|
"create": "Create",
|
|
"update": "Update"
|
|
},
|
|
"codeEditor": {
|
|
"title": "Edit Configuration File"
|
|
},
|
|
"fileUpload": {
|
|
"button": "Manage Files",
|
|
"dialogTitle": "Uploaded Files",
|
|
"dropzone": "Upload new file",
|
|
"allowedTypes": "Allowed types: {types}",
|
|
"empty": "No files uploaded",
|
|
"statusMissing": "Missing file",
|
|
"statusUnconfigured": "Not in config",
|
|
"uploadSuccess": "Uploaded {count} files",
|
|
"uploadFailed": "Upload failed",
|
|
"loadFailed": "Failed to load file list",
|
|
"fileTooLarge": "File too large (max {max} MB): {name}",
|
|
"deleteSuccess": "Deleted file",
|
|
"deleteFailed": "Delete failed",
|
|
"addToConfig": "Added to config",
|
|
"fileCount": "Files: {count}",
|
|
"done": "Done"
|
|
},
|
|
"unsavedChangesWarning": {
|
|
"dialogTitle": "Unsaved changes",
|
|
"leavePage": "You have unsaved changes. Do you want to save before leaving?",
|
|
"switchConfig": "Switching config will discard unsaved changes. Do you want to save first?",
|
|
"options": {
|
|
"save": "Save",
|
|
"saveAndSwitch": "Save and switch",
|
|
"discardAndSwitch": "Discard changes and switch",
|
|
"closeCard": "Close the pop-up window",
|
|
"confirm": "confirm",
|
|
"cancel": "cancel"
|
|
}
|
|
}
|
|
}
|