refactor(ui): improve i18n

This commit is contained in:
Fu Diwei
2024-12-10 16:37:24 +08:00
parent a4eff0b408
commit 8fe0d342aa
76 changed files with 214 additions and 266 deletions

View File

@@ -4,7 +4,6 @@ import nlsDashboard from "./nls.dashboard.json";
import nlsSettings from "./nls.settings.json";
import nlsDomain from "./nls.domain.json";
import nlsAccess from "./nls.access.json";
import nlsHistory from "./nls.history.json";
import nlsWorkflow from "./nls.workflow.json";
import nlsCertificate from "./nls.certificate.json";
@@ -15,7 +14,6 @@ export default Object.freeze({
...nlsSettings,
...nlsDomain,
...nlsAccess,
...nlsHistory,
...nlsWorkflow,
...nlsCertificate,
});

View File

@@ -7,7 +7,12 @@
"access.action.edit": "Edit Authorization",
"access.action.copy": "Copy Authorization",
"access.action.delete": "Delete Authorization",
"access.action.delete.confirm": "Are you sure you want to delete the deployment authorization?",
"access.action.delete.confirm": "Are you sure to delete this authorization?",
"access.props.name": "Name",
"access.props.provider": "Provider",
"access.props.created_at": "Created At",
"access.props.updated_at": "Updated At",
"access.authorization.form.type.label": "Provider",
"access.authorization.form.type.placeholder": "Please select a provider",

View File

@@ -15,6 +15,9 @@
"certificate.props.expiry.filter.expired": "Expired",
"certificate.props.workflow": "Workflow",
"certificate.props.source": "Source",
"certificate.props.source.workflow": "Workflow",
"certificate.props.certificate_chain": "Certificate Chain",
"certificate.props.private_key": "Private Key"
"certificate.props.private_key": "Private Key",
"certificate.props.created_at": "Created At",
"certificate.props.updated_at": "Updated At"
}

View File

@@ -1,24 +1,12 @@
{
"common.add": "Add",
"common.save": "Save",
"common.save.succeeded.message": "Save Successful",
"common.save.failed.message": "Save Failed",
"common.view": "View",
"common.edit": "Edit",
"common.copy": "Copy",
"common.copy.done": "Copied",
"common.download": "Download",
"common.delete": "Delete",
"common.delete.succeeded.message": "Delete Successful",
"common.delete.failed.message": "Delete Failed",
"common.next": "Next",
"common.reset": "Reset",
"common.confirm": "Confirm",
"common.cancel": "Cancel",
"common.submit": "Submit",
"common.update": "Update",
"common.update.succeeded.message": "Update Successful",
"common.update.failed.message": "Update Failed",
"common.button.add": "Add",
"common.button.cancel": "Cancel",
"common.button.copy": "Copy",
"common.button.delete": "Delete",
"common.button.ok": "Ok",
"common.button.reset": "Reset",
"common.button.save": "Save",
"common.button.submit": "Submit",
"common.text.domain": "Domain",
"common.text.domain.empty": "No Domain",
@@ -27,13 +15,10 @@
"common.text.dns": "Domain Name Server",
"common.text.dns.empty": "No DNS",
"common.text.ca": "Certificate Authority",
"common.text.name": "Name",
"common.text.provider": "Provider",
"common.text.workflow": "Workflow",
"common.text.created_at": "Created At",
"common.text.updated_at": "Updated At",
"common.text.operations": "Operations",
"common.text.copied": "Copied",
"common.text.nodata": "No data available",
"common.text.operation_succeeded": "Operation succeeded",
"common.text.operation_failed": "Operation failed",
"common.text.request_error": "Request error",
"common.menu.theme": "Change Theme",

View File

@@ -8,5 +8,5 @@
"dashboard.statistics.enabled_workflows": "Enabled Workflows",
"dashboard.statistics.unit": "",
"dashboard.certificate": "Latest Certificate"
"dashboard.latest_workflow_run": "Latest Workflow Run"
}

View File

@@ -1,15 +0,0 @@
{
"history.page.title": "Deployment History",
"history.nodata": "You have not created any deployments yet, please add a domain to start deployment!",
"history.props.domain": "Domain",
"history.props.status": "Status",
"history.props.stage": "Stage",
"history.props.stage.progress.check": "Check",
"history.props.stage.progress.apply": "Apply",
"history.props.stage.progress.deploy": "Deploy",
"history.props.last_execution_time": "Last Execution Time",
"history.log": "Log"
}

View File

@@ -3,6 +3,23 @@
"workflow.nodata": "No workflows. Please create a workflow to generate certificates! 😀",
"workflow.action.create": "Create Workflow",
"workflow.action.edit": "Edit Workflow",
"workflow.action.delete": "Delete Workflow",
"workflow.action.delete.confirm": "Are you sure to delete this workflow?",
"workflow.props.name": "Name",
"workflow.props.name.placeholder": "Please enter name",
"workflow.props.name.default": "Unnamed",
"workflow.props.description": "Description",
"workflow.props.description.placeholder": "Please enter description",
"workflow.props.execution_method": "Execution Method",
"workflow.props.state": "State",
"workflow.props.state.filter.enabled": "Enabled",
"workflow.props.state.filter.disabled": "Disabled",
"workflow.props.created_at": "Created At",
"workflow.props.updated_at": "Updated At",
"workflow.detail.title": "Workflow",
"workflow.detail.history": "History",
"workflow.detail.action.save": "Save updates",
@@ -15,25 +32,6 @@
"workflow.baseinfo.title": "Basic Information",
"workflow.props.name": "Name",
"workflow.props.name.placeholder": "Please enter name",
"workflow.props.name.default": "Unnamed",
"workflow.props.description": "Description",
"workflow.props.description.placeholder": "Please enter description",
"workflow.props.executionMethod": "Execution Method",
"workflow.props.state": "State",
"workflow.props.state.filter.enabled": "Enabled",
"workflow.props.state.filter.disabled": "Disabled",
"workflow.props.createdAt": "Created",
"workflow.props.updatedAt": "Updated",
"workflow.action": "Action",
"workflow.action.edit": "Edit",
"workflow.action.create": "Create Workflow",
"workflow.action.delete.alert.title": "Delete Workflow",
"workflow.action.delete.alert.content": "Are you sure you want to delete this workflow?",
"workflow.history.page.title": "Logs",
"workflow.history.props.state": "State",
"workflow.history.props.state.success": "Success",

View File

@@ -4,7 +4,6 @@ import nlsDashboard from "./nls.dashboard.json";
import nlsSettings from "./nls.settings.json";
import nlsDomain from "./nls.domain.json";
import nlsAccess from "./nls.access.json";
import nlsHistory from "./nls.history.json";
import nlsWorkflow from "./nls.workflow.json";
import nlsCertificate from "./nls.certificate.json";
@@ -15,7 +14,6 @@ export default Object.freeze({
...nlsSettings,
...nlsDomain,
...nlsAccess,
...nlsHistory,
...nlsWorkflow,
...nlsCertificate,
});

View File

@@ -9,6 +9,11 @@
"access.action.delete": "删除授权",
"access.action.delete.confirm": "确定要删除此授权吗?",
"access.props.name": "名称",
"access.props.provider": "服务商",
"access.props.created_at": "创建时间",
"access.props.updated_at": "更新时间",
"access.authorization.form.type.label": "服务商",
"access.authorization.form.type.placeholder": "请选择服务商",
"access.authorization.form.type.search.placeholder": "搜索服务商",

View File

@@ -15,6 +15,9 @@
"certificate.props.expiry.filter.expired": "已到期",
"certificate.props.workflow": "所属工作流",
"certificate.props.source": "来源",
"certificate.props.source.workflow": "工作流",
"certificate.props.certificate_chain": "证书内容",
"certificate.props.private_key": "私钥内容"
"certificate.props.private_key": "私钥内容",
"certificate.props.created_at": "创建时间",
"certificate.props.updated_at": "更新时间"
}

View File

@@ -1,24 +1,12 @@
{
"common.add": "新增",
"common.save": "保存",
"common.save.succeeded.message": "保存成功",
"common.save.failed.message": "保存失败",
"common.view": "查看",
"common.edit": "编辑",
"common.copy": "复制",
"common.copy.done": "已复制",
"common.download": "下载",
"common.delete": "刪除",
"common.delete.succeeded.message": "删除成功",
"common.delete.failed.message": "删除失败",
"common.next": "下一步",
"common.reset": "重置",
"common.confirm": "确认",
"common.cancel": "取消",
"common.submit": "提交",
"common.update": "更新",
"common.update.succeeded.message": "修改成功",
"common.update.failed.message": "修改失败",
"common.button.add": "新增",
"common.button.cancel": "取消",
"common.button.copy": "复制",
"common.button.delete": "刪除",
"common.button.ok": "确定",
"common.button.reset": "重置",
"common.button.save": "保存",
"common.button.submit": "提交",
"common.text.domain": "域名",
"common.text.domain.empty": "无域名",
@@ -27,13 +15,10 @@
"common.text.dns": "DNS域名服务器",
"common.text.dns.empty": "无 DNS 地址",
"common.text.ca": "CA证书颁发机构",
"common.text.name": "名称",
"common.text.provider": "服务商",
"common.text.workflow": "工作流",
"common.text.created_at": "创建时间",
"common.text.updated_at": "更新时间",
"common.text.operations": "操作",
"common.text.copied": "已复制",
"common.text.nodata": "暂无数据",
"common.text.operation_succeeded": "操作成功",
"common.text.operation_failed": "操作失败",
"common.text.request_error": "请求错误",
"common.menu.theme": "切换主题",

View File

@@ -8,5 +8,5 @@
"dashboard.statistics.enabled_workflows": "已启用工作流",
"dashboard.statistics.unit": "个",
"dashboard.certificate": "最新证书"
"dashboard.latest_workflow_run": "最近执行的工作流"
}

View File

@@ -1,15 +0,0 @@
{
"history.page.title": "部署历史",
"history.nodata": "你暂未创建任何部署,请先添加域名进行部署吧!",
"history.props.domain": "域名",
"history.props.status": "状态",
"history.props.stage": "阶段",
"history.props.stage.progress.check": "检查",
"history.props.stage.progress.apply": "获取",
"history.props.stage.progress.deploy": "部署",
"history.props.last_execution_time": "最近执行时间",
"history.log": "日志"
}

View File

@@ -3,6 +3,23 @@
"workflow.nodata": "暂无工作流,请先新建",
"workflow.action.create": "新建工作流",
"workflow.action.edit": "编辑工作流",
"workflow.action.delete": "删除工作流",
"workflow.action.delete.confirm": "确定要删除此工作流吗?",
"workflow.props.name": "名称",
"workflow.props.name.placeholder": "请输入名称",
"workflow.props.name.default": "未命名工作流",
"workflow.props.description": "描述",
"workflow.props.description.placeholder": "请输入描述",
"workflow.props.execution_method": "执行方式",
"workflow.props.state": "启用状态",
"workflow.props.state.filter.enabled": "启用",
"workflow.props.state.filter.disabled": "未启用",
"workflow.props.created_at": "创建时间",
"workflow.props.updated_at": "更新时间",
"workflow.detail.title": "流程",
"workflow.detail.history": "历史",
"workflow.detail.action.save": "保存变更",
@@ -15,25 +32,6 @@
"workflow.baseinfo.title": "基本信息",
"workflow.props.name": "名称",
"workflow.props.name.placeholder": "请输入名称",
"workflow.props.name.default": "未命名工作流",
"workflow.props.description": "描述",
"workflow.props.description.placeholder": "请输入描述",
"workflow.props.executionMethod": "执行方式",
"workflow.props.state": "启用状态",
"workflow.props.state.filter.enabled": "启用",
"workflow.props.state.filter.disabled": "未启用",
"workflow.props.createdAt": "创建时间",
"workflow.props.updatedAt": "更新时间",
"workflow.action": "操作",
"workflow.action.edit": "编辑",
"workflow.action.create": "新建工作流",
"workflow.action.delete.alert.title": "删除工作流",
"workflow.action.delete.alert.content": "确定要删除此工作流吗?",
"workflow.history.page.title": "日志",
"workflow.history.props.state": "状态",
"workflow.history.props.state.success": "通过",