improve multi language

This commit is contained in:
yoan
2024-11-23 12:55:31 +08:00
parent 47050769fc
commit 37df882ed3
22 changed files with 291 additions and 105 deletions

View File

@@ -6,6 +6,7 @@ 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";
export default Object.freeze({
...nlsCommon,
@@ -16,4 +17,5 @@ export default Object.freeze({
...nlsAccess,
...nlsHistory,
...nlsWorkflow,
...nlsCertificate,
});

View File

@@ -0,0 +1,19 @@
{
"certificate.page.title": "Certificates",
"certificate.nodata": "No certificates yet, add a workflow to generate certificates!😀",
"certificate.props.domain": "Name",
"certificate.props.expiry": "Expiry",
"certificate.props.expiry.days": "Days",
"certificate.props.expiry.expired": "Expired",
"certificate.props.expiry.text.expire": "Expire",
"certificate.props.workflow": "Workflow",
"certificate.props.created": "Created",
"certificate.props.certificate": "Certificate",
"certificate.props.private.key": "Private Key",
"certificate.action.view": "View Certificate",
"certificate.action.download": "Download Certificate"
}

View File

@@ -1,11 +1,15 @@
{
"dashboard.page.title": "Dashboard",
"dashboard.statistics.all": "All",
"dashboard.statistics.near_expired": "About to Expire",
"dashboard.statistics.enabled": "Enabled",
"dashboard.statistics.disabled": "Not Enabled",
"dashboard.statistics.all.certificate": "All Certificates",
"dashboard.statistics.near_expired.certificate": "Certificates Near Expiry",
"dashboard.statistics.expired.certificate": "Expired Certificates",
"dashboard.statistics.all.workflow": "All Workflows",
"dashboard.statistics.enabled.workflow": "Enabled Workflows",
"dashboard.statistics.unit": "",
"dashboard.history": "Recently Deployment History"
"dashboard.certificate": "Latest Certificate"
}

View File

@@ -1,4 +1,42 @@
{
"workflow.page.title": "Workflows",
"workflow.detail.title": "Workflow",
"workflow.detail.history": "History",
"workflow.detail.action.save": "Save updates",
"workflow.detail.action.save.failed": "Save failed",
"workflow.detail.action.save.failed.uncompleted": "Save failed, please complete all node settings",
"workflow.detail.action.run": "Run",
"workflow.detail.action.run.failed": "Run failed",
"workflow.detail.action.run.success": "Run success",
"workflow.detail.action.running": "Running",
"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.enabled": "Enabled",
"workflow.props.created": "Created",
"workflow.props.updated": "Updated",
"workflow.action": "Action",
"workflow.action.edit": "Edit",
"workflow.action.create": "Create Workflow",
"workflow.action.delete.alert.title": "Delete Workflow",
"workflow.action.delete.alert.description": "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",
"workflow.history.props.state.failed": "Failed",
"workflow.history.props.reason": "Reason",
"workflow.history.props.time": "Time",
"workflow.common.certificate.label": "Certificate",
"workflow.common.certificate.placeholder": "Please select certificate source",

View File

@@ -6,6 +6,7 @@ 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";
export default Object.freeze({
...nlsCommon,
@@ -16,4 +17,5 @@ export default Object.freeze({
...nlsAccess,
...nlsHistory,
...nlsWorkflow,
...nlsCertificate,
});

View File

@@ -0,0 +1,19 @@
{
"certificate.page.title": "证书",
"certificate.nodata": "暂无证书,添加工作流去生成证书吧😀",
"certificate.props.domain": "名称",
"certificate.props.expiry": "有效期限",
"certificate.props.expiry.days": "天",
"certificate.props.expiry.expired": "已到期",
"certificate.props.expiry.text.expire": "到期",
"certificate.props.workflow": "所属工作流",
"certificate.props.created": "颁发时间",
"certificate.props.certificate": "证书",
"certificate.props.private.key": "私钥",
"certificate.action.view": "查看证书",
"certificate.action.download": "下载证书"
}

View File

@@ -1,11 +1,15 @@
{
"dashboard.page.title": "仪表盘",
"dashboard.statistics.all": "所有",
"dashboard.statistics.near_expired": "即将过期",
"dashboard.statistics.enabled": "启用中",
"dashboard.statistics.disabled": "未启用",
"dashboard.statistics.all.certificate": "所有证书",
"dashboard.statistics.near_expired.certificate": "即将过期证书",
"dashboard.statistics.expired.certificate": "已过期证书",
"dashboard.statistics.all.workflow": "所有工作流",
"dashboard.statistics.enabled.workflow": "已启用工作流",
"dashboard.statistics.unit": "个",
"dashboard.history": "最近部署"
"dashboard.certificate": "最新证书"
}

View File

@@ -1,4 +1,42 @@
{
"workflow.page.title": "工作流",
"workflow.detail.title": "流程",
"workflow.detail.history": "历史",
"workflow.detail.action.save": "保存变更",
"workflow.detail.action.save.failed": "保存失败",
"workflow.detail.action.save.failed.uncompleted": "保存失败,请完成所有节点设置",
"workflow.detail.action.run": "立即执行",
"workflow.detail.action.run.failed": "执行失败",
"workflow.detail.action.run.success": "执行成功",
"workflow.detail.action.running": "正在执行",
"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.enabled": "是否启用",
"workflow.props.created": "创建时间",
"workflow.props.updated": "更新时间",
"workflow.action": "操作",
"workflow.action.edit": "编辑",
"workflow.action.create": "创建工作流",
"workflow.action.delete.alert.title": "删除工作流",
"workflow.action.delete.alert.description": "确定要删除此工作流吗?",
"workflow.history.page.title": "日志",
"workflow.history.props.state": "状态",
"workflow.history.props.state.success": "通过",
"workflow.history.props.state.failed": "失败",
"workflow.history.props.reason": "原因",
"workflow.history.props.time": "时间",
"workflow.common.certificate.label": "证书",
"workflow.common.certificate.placeholder": "请选择证书来源",