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",