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