优化前端双语配置
This commit is contained in:
@@ -111,7 +111,7 @@ const i18n: I18n = createI18n(i18nOptions)
|
||||
* 翻译函数类型
|
||||
*/
|
||||
interface Translation {
|
||||
(key: string): string
|
||||
(key: string, named?: Record<string, unknown>): string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,6 +39,46 @@
|
||||
"confirm": "Confirm",
|
||||
"logOutTips": "Do you want to log out?"
|
||||
},
|
||||
"uiMsg": {
|
||||
"titlePrompt": "Prompt",
|
||||
"titleDelete": "Delete",
|
||||
"titleDeleteSelected": "Delete selected",
|
||||
"btnOk": "Confirm",
|
||||
"btnCancel": "Cancel",
|
||||
"deleteConfirmSingle": "Are you sure you want to delete this item?",
|
||||
"deleteConfirmSelected": "Are you sure you want to delete the selected {n} items?",
|
||||
"deleteSuccess": "Deleted",
|
||||
"operationSuccess": "Success",
|
||||
"selectRowsToDelete": "Please select rows to delete",
|
||||
"selectAtLeastOne": "Please select at least one item",
|
||||
"clearCacheSuccess": "Cache cleared",
|
||||
"copySuccess": "Copied",
|
||||
"copyFail": "Copy failed, please copy manually",
|
||||
"uploadSuccess": "Uploaded",
|
||||
"uploadFail": "Upload failed",
|
||||
"downloadTemplateFail": "Failed to download template",
|
||||
"importSuccess": "Imported",
|
||||
"importFail": "Import failed",
|
||||
"exportFail": "Export failed",
|
||||
"exportSuccess": "Exported"
|
||||
,
|
||||
"exportNotConfigured": "Export API is not configured",
|
||||
"exportPromptFileName": "Please enter export file name",
|
||||
"exportFileNameRequired": "File name is required",
|
||||
"clearCacheSelect": "Please select a cache to clear",
|
||||
"clearCacheTitle": "Clear selected cache",
|
||||
"clearCacheConfirmByTag": "Are you sure you want to clear cache for tag: {tag}?"
|
||||
,
|
||||
"saipackageWebBuildTitle": "Frontend build & publish",
|
||||
"saipackageWebBuildConfirm": "Rebuild frontend and publish the project?",
|
||||
"saipackageWebBuildSuccess": "Frontend built and published",
|
||||
"saipackageFrontendDepsTitle": "Frontend dependencies",
|
||||
"saipackageFrontendDepsConfirm": "Update frontend Node dependencies?",
|
||||
"saipackageFrontendDepsSuccess": "Frontend dependencies updated",
|
||||
"saipackageComposerTitle": "Composer dependencies",
|
||||
"saipackageComposerConfirm": "Update backend Composer packages?",
|
||||
"saipackageComposerSuccess": "Composer packages updated"
|
||||
},
|
||||
"form": {
|
||||
"placeholderInput": "Please enter",
|
||||
"placeholderSelect": "Please select",
|
||||
|
||||
@@ -67,5 +67,10 @@
|
||||
"ruleStatusRequired": "Status is required",
|
||||
"addSuccess": "Added successfully",
|
||||
"editSuccess": "Updated successfully"
|
||||
},
|
||||
"ui": {
|
||||
"clearAllConfirm": "Are you sure you want to clear all player draw test data?",
|
||||
"clearAllSuccess": "All test data cleared",
|
||||
"clearAllFail": "Clear failed"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,5 +47,11 @@
|
||||
"ruleRoleRequired": "Please select role",
|
||||
"addSuccess": "Added successfully",
|
||||
"editSuccess": "Updated successfully"
|
||||
},
|
||||
"ui": {
|
||||
"promptNewPassword": "Please enter a new password",
|
||||
"passwordLengthError": "Password length must be between 6 and 16",
|
||||
"passwordChanged": "Password updated",
|
||||
"clearCacheConfirm": "Are you sure you want to clear cache?"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,16 @@
|
||||
"tplCategory": "Gen Type",
|
||||
"updateTime": "Update Time",
|
||||
"createTime": "Create Time"
|
||||
},
|
||||
"ui": {
|
||||
"generating": "Generating code package, please wait...",
|
||||
"generateSuccess": "Code generated, downloading...",
|
||||
"downloadFail": "Download failed",
|
||||
"syncConfirm": "Sync will overwrite the configured table structure. Continue?",
|
||||
"syncSuccess": "Synced",
|
||||
"generateToProjectConfirm": "Generate-to-project will overwrite existing files. Continue?",
|
||||
"generateToProjectSuccess": "Generated to project",
|
||||
"loadSuccess": "Loaded",
|
||||
"copyToClipboard": "Code copied to clipboard"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,5 +58,11 @@
|
||||
"ruleTargetRequired": "Target is required",
|
||||
"addSuccess": "Added successfully",
|
||||
"editSuccess": "Updated successfully"
|
||||
},
|
||||
"ui": {
|
||||
"runTitle": "Run Task",
|
||||
"runConfirm": "Are you sure you want to run task [{name}]?",
|
||||
"runSuccess": "Task started",
|
||||
"selectTaskFirst": "Please select a task first"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,46 @@
|
||||
"confirm": "确定",
|
||||
"logOutTips": "您是否要退出登录?"
|
||||
},
|
||||
"uiMsg": {
|
||||
"titlePrompt": "提示",
|
||||
"titleDelete": "删除数据",
|
||||
"titleDeleteSelected": "删除选中数据",
|
||||
"btnOk": "确定",
|
||||
"btnCancel": "取消",
|
||||
"deleteConfirmSingle": "确定要删除该数据吗?",
|
||||
"deleteConfirmSelected": "确定要删除选中的 {n} 条数据吗?",
|
||||
"deleteSuccess": "删除成功",
|
||||
"operationSuccess": "操作成功",
|
||||
"selectRowsToDelete": "请选择要删除的行",
|
||||
"selectAtLeastOne": "至少要选择一条数据",
|
||||
"clearCacheSuccess": "清理缓存成功",
|
||||
"copySuccess": "复制成功",
|
||||
"copyFail": "复制失败,请手动复制",
|
||||
"uploadSuccess": "上传成功",
|
||||
"uploadFail": "上传失败",
|
||||
"downloadTemplateFail": "下载模板失败",
|
||||
"importSuccess": "导入成功",
|
||||
"importFail": "导入失败",
|
||||
"exportFail": "导出失败",
|
||||
"exportSuccess": "导出成功"
|
||||
,
|
||||
"exportNotConfigured": "未配置导出接口",
|
||||
"exportPromptFileName": "请输入导出文件名称",
|
||||
"exportFileNameRequired": "文件名不能为空",
|
||||
"clearCacheSelect": "请选择要清理的缓存",
|
||||
"clearCacheTitle": "清理选中缓存",
|
||||
"clearCacheConfirmByTag": "确定要清理标签:【{tag}】的缓存吗?"
|
||||
,
|
||||
"saipackageWebBuildTitle": "前端打包发布",
|
||||
"saipackageWebBuildConfirm": "确认重新打包前端并发布项目吗?",
|
||||
"saipackageWebBuildSuccess": "前端打包发布成功",
|
||||
"saipackageFrontendDepsTitle": "前端依赖更新",
|
||||
"saipackageFrontendDepsConfirm": "确认更新前端Node依赖吗?",
|
||||
"saipackageFrontendDepsSuccess": "前端依赖更新成功",
|
||||
"saipackageComposerTitle": "composer包更新",
|
||||
"saipackageComposerConfirm": "确认更新后端composer包吗?",
|
||||
"saipackageComposerSuccess": "composer包更新成功"
|
||||
},
|
||||
"form": {
|
||||
"placeholderInput": "请输入",
|
||||
"placeholderSelect": "请选择",
|
||||
|
||||
@@ -67,5 +67,10 @@
|
||||
"ruleStatusRequired": "状态必需填写",
|
||||
"addSuccess": "新增成功",
|
||||
"editSuccess": "修改成功"
|
||||
},
|
||||
"ui": {
|
||||
"clearAllConfirm": "确定清空所有玩家抽奖测试数据?",
|
||||
"clearAllSuccess": "已清空所有测试数据",
|
||||
"clearAllFail": "清空失败"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,5 +47,11 @@
|
||||
"ruleRoleRequired": "请选择角色",
|
||||
"addSuccess": "新增成功",
|
||||
"editSuccess": "修改成功"
|
||||
},
|
||||
"ui": {
|
||||
"promptNewPassword": "请输入新密码",
|
||||
"passwordLengthError": "密码长度在6到16之间",
|
||||
"passwordChanged": "修改密码成功",
|
||||
"clearCacheConfirm": "确定要清理缓存吗?"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,16 @@
|
||||
"tplCategory": "生成类型",
|
||||
"updateTime": "更新时间",
|
||||
"createTime": "创建时间"
|
||||
},
|
||||
"ui": {
|
||||
"generating": "代码生成下载中,请稍后",
|
||||
"generateSuccess": "代码生成成功,开始下载",
|
||||
"downloadFail": "文件下载失败",
|
||||
"syncConfirm": "执行同步操作将会覆盖已经设置的表结构,确定要同步吗?",
|
||||
"syncSuccess": "同步成功",
|
||||
"generateToProjectConfirm": "生成到项目将会覆盖原有文件,确定要生成吗?",
|
||||
"generateToProjectSuccess": "生成到项目成功",
|
||||
"loadSuccess": "装载成功",
|
||||
"copyToClipboard": "代码已复制到剪贴板"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,5 +58,11 @@
|
||||
"ruleTargetRequired": "调用目标不能为空",
|
||||
"addSuccess": "新增成功",
|
||||
"editSuccess": "修改成功"
|
||||
},
|
||||
"ui": {
|
||||
"runTitle": "运行任务",
|
||||
"runConfirm": "确定要运行任务【{name}】吗?",
|
||||
"runSuccess": "任务运行成功",
|
||||
"selectTaskFirst": "请先选择一个任务"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user