Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(i18n): correct English grammar and count labels (#21874)

p0ny294ad6061fc2
diff --git a/frontend/src/locales/dynamic/en-US.json b/frontend/src/locales/dynamic/en-US.json
index d7621562bb..8275f1123b 100644
--- a/frontend/src/locales/dynamic/en-US.json
+++ b/frontend/src/locales/dynamic/en-US.json
@@ -46,7 +46,7 @@
"title": "Audit log"
},
"FEATURE_AUTOMATIC_BACKUP_BEFORE_DATA_CHANGES": {
- "desc": "Automatically backup data before making changes.",
+ "desc": "Automatically back up data before making changes.",
"title": "Automatic backup"
},
"FEATURE_AUTO_COMPLETE": {
@@ -130,8 +130,8 @@
"title": "Directory sync"
},
"FEATURE_DISALLOW_PASSWORD_SIGNIN": {
- "desc": "Require SSO authentication only for user signin.",
- "title": "Disable password signin"
+ "desc": "Require SSO authentication only for user sign-in.",
+ "title": "Disable password sign-in"
},
"FEATURE_DISALLOW_SELF_SERVICE_SIGNUP": {
"desc": "Require admin invitation for new user registration.",
@@ -202,7 +202,7 @@
"title": "Natural language to SQL"
},
"FEATURE_ONE_CLICK_DATA_ROLLBACK": {
- "desc": "Quickly rollback data changes with a single click.",
+ "desc": "Quickly roll back data changes with a single click.",
"title": "One-click data rollback"
},
"FEATURE_ONLINE_SCHEMA_CHANGE": {
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index b4cbfceda0..ec867fb51f 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -348,7 +348,7 @@
},
"sign-up": {
"accept-terms-and-policy": "I accept Bytebase's <terms>Terms of Service</terms> and <policy>Privacy Policy</policy>",
- "admin-title": "Setup <account>admin account</account>",
+ "admin-title": "Set up an <account>admin account</account>",
"create-admin-account": "Create admin account",
"existing-user": "Already have an account?",
"title": "Register your account"
@@ -358,7 +358,7 @@
"no-authorization-endpoint": "The identity provider published no authorization endpoint. Check its configuration.",
"unsupported-provider-type": "This identity provider type does not support SSO redirect."
},
- "token-expired-description": "Token has expired, please login again",
+ "token-expired-description": "Your token has expired. Please sign in again.",
"token-expired-title": "Token expired"
},
"banner": {
@@ -370,7 +370,7 @@
"bbkit": {
"confirm-button": {
"cannot-undo": "You cannot undo this action.",
- "sure-to-delete": "Are you sure to delete?"
+ "sure-to-delete": "Are you sure you want to delete this?"
}
},
"cel": {
@@ -447,7 +447,7 @@
"confirm": "Confirm",
"confirm-archive": "Archive Resource?",
"confirm-delete": "Delete Resource?",
- "confirm-to-revert": "Confirm to revert your editing?",
+ "confirm-to-revert": "Discard your changes?",
"continue-anyway": "Continue anyway",
"copied": "Copied",
"copy": "Copy",
@@ -506,8 +506,8 @@
"failed": "Failed",
"feishu": "Feishu",
"file-selector": {
- "size-limit": "File size should less than {{size}} MiB",
- "type-limit": "Only support {{extension}} file"
+ "size-limit": "File size must be less than {{size}} MiB",
+ "type-limit": "Only {{extension}} files are supported"
},
"filter": "Filter",
"filter-by-name": "Filter by name",
@@ -1068,7 +1068,7 @@
"views": "Views"
},
"environment": {
- "delete-description": "Delete environment will also remove it from related instances and databases. You cannot undo this action",
+ "delete-description": "Deleting this environment will also remove it from related instances and databases. You cannot undo this action.",
"reorder": "Reorder Environments",
"select": "Select environment",
"successfully-updated-environment": "Successfully updated environment '{{name}}'."
@@ -1173,11 +1173,11 @@
"advanced-search": {
"scope": {
"host": {
- "description": "Filter by instance host. Please input the value then press the Enter.",
+ "description": "Filter by instance host. Enter a value, then press Enter.",
"title": "Host"
},
"port": {
- "description": "Filter by instance port. Please input the value then press the Enter.",
+ "description": "Filter by instance port. Enter a value, then press Enter.",
"title": "Port"
}
}
@@ -1314,7 +1314,7 @@
}
},
"vault-secret-engine-name": "Secret engine name",
- "vault-secret-engine-tips": "Only support KV v2 engine.",
+ "vault-secret-engine-tips": "Only the KV v2 engine is supported.",
"vault-secret-key": "Secret key",
"vault-secret-path": "Secret path",
"vault-tls-config": "Vault TLS Configuration (Optional)",
@@ -1336,9 +1336,9 @@
"client-secret": "Client Secret",
"credential-source": "Credential Source",
"default-credential": {
- "aws": "Bytebase will read the credential from environment variables <awsAccessKeyId>AWS_ACCESS_KEY_ID</awsAccessKeyId>/<awsSecretAccessKey>AWS_SECRET_ACCESS_KEY</awsSecretAccessKey>/<awsSessionToken>AWS_SESSION_TOKEN</awsSessionToken>, fallback to shared credentials file <awsCredentialsPath>~/.aws/credentials</awsCredentialsPath> or IAM role in AWS ECS",
- "azure": "Bytebase will read the credential from environment variables <azureClientId>AZURE_CLIENT_ID</azureClientId>/<azureTenantId>AZURE_TENANT_ID</azureTenantId>/<azureClientSecret>AZURE_CLIENT_SECRET</azureClientSecret> or <azureClientCertificatePath>AZURE_CLIENT_CERTIFICATE_PATH</azureClientCertificatePath>, and fallback to attached users in Azure VM",
- "gcp": "Bytebase will read the credential from environment variable <googleApplicationCredentials>GOOGLE_APPLICATION_CREDENTIALS</googleApplicationCredentials>, fallback to the attached service account in GCP GCE"
+ "aws": "Bytebase will read the credentials from the environment variables <awsAccessKeyId>AWS_ACCESS_KEY_ID</awsAccessKeyId>/<awsSecretAccessKey>AWS_SECRET_ACCESS_KEY</awsSecretAccessKey>/<awsSessionToken>AWS_SESSION_TOKEN</awsSessionToken>, or fall back to the shared credentials file <awsCredentialsPath>~/.aws/credentials</awsCredentialsPath> or an IAM role in AWS ECS",
+ "azure": "Bytebase will read the credentials from the environment variables <azureClientId>AZURE_CLIENT_ID</azureClientId>/<azureTenantId>AZURE_TENANT_ID</azureTenantId>/<azureClientSecret>AZURE_CLIENT_SECRET</azureClientSecret> or <azureClientCertificatePath>AZURE_CLIENT_CERTIFICATE_PATH</azureClientCertificatePath>, and fall back to attached users in Azure VM",
+ "gcp": "Bytebase will read the credentials from the environment variable <googleApplicationCredentials>GOOGLE_APPLICATION_CREDENTIALS</googleApplicationCredentials>, or fall back to the attached service account in GCP GCE"
},
"saas-default-credential-restriction": "Default credentials are not available in Bytebase Cloud for security. Please provide specific credentials.",
"specific-credential": "Specific Credential",
@@ -1477,10 +1477,10 @@
"sentence": {
"aws-rds": {
"mysql": {
- "template": "Below is an example to create user {{user}}@% and grant the user with the needed privileges."
+ "template": "The following example creates the user {{user}}@% and grants the user the required privileges."
},
"postgresql": {
- "template": "Below is an example to create user '{{user}}' and grant the user with the needed privileges."
+ "template": "The following example creates the user '{{user}}' and grants the user the required privileges."
}
},
"console": {
@@ -1493,24 +1493,24 @@
"create-user-example": {
"clickhouse": {
"sql-driven-workflow": "SQL-driven workflow",
- "template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. First you need to enable ClickHouse SQL-driven workflow {{link}} and then run the following query to create the user."
+ "template": "The following example creates the user '{{user}}' with password {{password}} and grants the user the required privileges. First you need to enable ClickHouse SQL-driven workflow {{link}} and then run the following query to create the user."
},
"mysql": {
- "template": "Below is an example to create user {{user}}@% with password {{password}} and grant the user with the needed privileges.",
+ "template": "The following example creates the user {{user}}@% with password {{password}} and grants the user the required privileges.",
"warn": "To let Bytebase run changes that set DEFINER to another account, also grant SET_USER_ID on MySQL 8.0 or SET_ANY_DEFINER on MySQL 8.4 and later. Some cloud providers restrict these privileges."
},
"oracle": {
"warn": "GRANT ALL PRIVILEGES doesn't work on Amazon RDS for Oracle."
},
"postgresql": {
- "template": "Below is an example to create user '{{user}}' with password {{password}} and grant the user with the needed privileges. If the connecting instance is self-hosted, then you can grant SUPERUSER.",
+ "template": "The following example creates the user '{{user}}' with password {{password}} and grants the user the required privileges. If the connecting instance is self-hosted, then you can grant SUPERUSER.",
"warn": "If the connecting instance is managed by the cloud provider, then SUPERUSER is not available and you should create the user via that provider's admin console. The created user will have provider specific semi-SUPERUSER privileges. You should grant Bytebase privileges with 'GRANT role_name TO bytebase;' for all existing roles, otherwise Bytebase may not access existing databases or tables."
},
"redis": {
- "template": "Below is an example to create user {{user}} with password {{password}} and grant the user with the needed privileges."
+ "template": "The following example creates the user {{user}} with password {{password}} and grants the user the required privileges."
},
"snowflake": {
- "template": "Below is an example to create user '{{user}}' with password {{password}} for {{warehouse}} and grant the user with the needed privileges."
+ "template": "The following example creates the user '{{user}}' with password {{password}} for {{warehouse}} and grants the user the required privileges."
}
},
"firewall-info": "Allowlist the Bytebase Cloud IP in your database firewall.",
@@ -1518,10 +1518,10 @@
"instance-name": "Instance Connection Name",
"instance-name-tips": "The instance connection name should look like {{instance}}.",
"mysql": {
- "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@'%'. Grant this user with the needed privileges."
+ "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@'%'. Grant this user the required privileges."
},
"postgresql": {
- "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@project-id.iam. Grant the user with the needed privileges."
+ "template": "Create a service account named {{user}}, then add it in your Google Cloud SQL as IAM user {{user}}@project-id.iam. Grant the user the required privileges."
}
},
"host": {
@@ -1601,7 +1601,7 @@
},
"container": "Container",
"details": "Access grant details",
- "duration-after-approval": "{{duration}} after issue approved",
+ "duration-after-approval": "{{duration}} after the issue is approved",
"expired-at": "Expired at",
"export-results-to-file": "Export results to a file",
"this-grant-allows": "This grant allows",
@@ -1900,7 +1900,7 @@
"n-open": "{{count}} open",
"n-warnings_one": "{{count}} warning",
"n-warnings_other": "{{count}} warnings",
- "needs-attention": "{{count}} of {{total}} needs attention",
+ "needs-attention": "Needs attention: {{count}} of {{total}}",
"no-findings": "No findings",
"not-run": "Not run yet",
"nothing-needs-attention": "Nothing needs attention",
@@ -2228,13 +2228,13 @@
"n-changes": "{{n}} changes",
"n-database-groups": "{{n}} database groups",
"n-databases": "{{n}} databases",
- "n-error": "{{n}} error",
+ "n-error": "Errors: {{n}}",
"n-of-m-approved": "{{n}} of {{m}} approved",
"n-of-m-tasks": "{{n}}/{{m}} tasks",
"n-passed": "{{n}} passed",
"n-unresolved-threads_one": "{{count}} unresolved thread",
"n-unresolved-threads_other": "{{count}} unresolved threads",
- "n-warning": "{{n}} warning",
+ "n-warning": "Warnings: {{n}}",
"no-approval-required": "No approval required"
},
"targets": {
@@ -2259,7 +2259,7 @@
"ai-assistant": "AI Assistant",
"conversation": {
"delete": "Delete conversation",
- "history-conversations": "History conversations",
+ "history-conversations": "Conversation history",
"new-conversation": "Start new conversation",
"no-message": "No message in this conversation",
"rename": "Rename conversation",
@@ -2269,7 +2269,7 @@
"suggest-prompt": "Suggesting prompts..."
},
"untitled": "Untitled conversation",
- "view-history-conversations": "View history conversations"
+ "view-history-conversations": "View conversation history"
},
"new-line": "New line",
"not-configured": {
@@ -2289,7 +2289,7 @@
},
"rollout": {
"auto": "Automatic",
- "auto-info": "If all check pass, the change will be rolled out and executed automatically.",
+ "auto-info": "If all checks pass, the change will be rolled out and executed automatically.",
"info": "Tasks can be executed by users with '{{permission}}' permission or the following roles.",
"name": "Rollout Policy",
"tip": "The policy is applied to issues retroactively."
@@ -2462,7 +2462,7 @@
"self": "CI Data Sampling Size"
},
"enforce-issue-title": {
- "description": "Require titles for issues and plans to be created by user instead of auto-generated.",
+ "description": "Require users to enter titles for issues and plans instead of generating them automatically.",
"self": "Require manual title"
},
"enforce-sql-review": {
@@ -2471,25 +2471,25 @@
},
"labels": {
"configure-labels": "Configure labels",
- "description": "Labels can be attached in the issues for management",
+ "description": "Attach labels to issues to organize them.",
"force-issue-labels": {
"description": "Require at least one label when creating issues.",
"self": "Require labels for all issues",
- "warning": "Require at least configured one label"
+ "warning": "Require at least one configured label"
},
"placeholder": "Press Enter to add tag",
"self": "Issue Labels"
},
"max-retries": {
- "description": "The maximum retries count for lock timeout when running the task. The default value is 0. Only applicable to Postgres.",
- "self": "Maximum retries count for lock timeout"
+ "description": "The maximum number of retries after a lock timeout when running a task. The default value is 0. Only applicable to Postgres.",
+ "self": "Maximum retries after a lock timeout"
},
"parallel_tasks_per_rollout": {
"description": "Control the number of parallel tasks per rollout. Setting this to zero disables any throttling.",
"self": "Parallel tasks per rollout"
},
"postgres-database-tenant-mode": {
- "description": "The tenant mode for Postgres database. If enable, the issue will be run by the database OWNER. Otherwise, the issue will be run by the instance connection user.",
+ "description": "The tenant mode for Postgres databases. If enabled, the issue will be run by the database OWNER. Otherwise, the issue will be run by the instance connection user.",
"self": "Postgres database tenant mode"
},
"require-issue-approval": {
@@ -2544,7 +2544,7 @@
"title": "Pipeline failed"
}
},
- "activity-support-direct-message": "Support send direct messages to related users",
+ "activity-support-direct-message": "Supports sending direct messages to related users",
"creation": {
"desc": "Create the corresponding webhook for the {{destination}} channel receiving the message.",
"view-doc": "View {{destination}}'s doc"
@@ -2604,9 +2604,9 @@
"remind": {
"role-expire": {
"checkbox": "Do not remind until any updates",
- "content": "Your following roles are going to expire",
+ "content": "The following roles will expire",
"go-to-project": "Go to the project page",
- "title": "Role expiration remind"
+ "title": "Role expiration reminder"
}
},
"resource": {
@@ -2616,7 +2616,7 @@
},
"resource-id": {
"cannot-be-changed-later": "It cannot be changed later.",
- "description": "The {{resource}} ID is a unique identifier. You cannot change it after created.",
+ "description": "The {{resource}} ID is a unique identifier. You cannot change it after creation.",
"self": "{{resource}} ID",
"validation": {
"duplicated": "The {{resource}} ID already exists. Please choose another one.",
@@ -2662,7 +2662,7 @@
"select-role": "Select role",
"self": "Role",
"setting": {
- "description": "Defining custom roles. You may apply them to project members and used in custom approval.",
+ "description": "Define custom roles, assign them to project members, and use them in custom approval.",
"description-placeholder": "Input role description",
"title-placeholder": "Input role title"
},
@@ -2706,13 +2706,13 @@
"title": "Pending Tasks"
},
"stage": {
- "confirm-create": "Confirm to create tasks for this stage?",
+ "confirm-create": "Create tasks for this stage?",
"self_one": "Stage",
"self_other": "Stages"
},
"task": {
"no-tasks": "No tasks in this stage",
- "selected-count": "{{count}} task selected",
+ "selected-count": "Selected tasks: {{count}}",
"statement-truncated-hint": "Statement truncated due to large size."
},
"task-execution-errors": "Task execution errors"
@@ -2773,7 +2773,7 @@
},
"index": {
"columns": "Columns",
- "dependency-columns": "Depenedent columns",
+ "dependency-columns": "Dependent columns",
"indexes": "Indexes",
"primary": "Primary",
"unique": "Unique"
@@ -2856,7 +2856,7 @@
"self": "API Key"
},
"available-in-saas": "AI Assistant is available in this workspace and managed by Bytebase.",
- "description": "Use AI to assist the database development tasks.",
+ "description": "Use AI to help with database development tasks.",
"enable-ai-assistant": "Enable AI Assistant",
"endpoint": {
"description": "Enter the API endpoint for the custom model.",
@@ -2950,7 +2950,7 @@
"self": "SQL Editor"
},
"workspace": {
- "description": "Use issue to request, review, rollout, and version database changes, suitable for teams with access control and CI & CD workflow.",
+ "description": "Use issues to request, review, roll out, and version database changes. Suitable for teams with access control and CI/CD workflows.",
"self": "Workspace"
}
},
@@ -2978,7 +2978,7 @@
},
"external-url": {
"cannot-edit-flag": "External URL cannot be changed because it is set via --external-url command-line flag",
- "description": "The external URL where user visits Bytebase, must start with http:// or https://.",
+ "description": "The external URL where users access Bytebase. It must start with http:// or https://.",
"self": "External URL"
},
"extra-link": {
@@ -3220,8 +3220,8 @@
},
"members": {
"action": {
- "deactivate-confirm-title": "Are you sure to deactivate?",
- "reactivate-confirm-title": "Are you sure to reactivate"
+ "deactivate-confirm-title": "Are you sure you want to deactivate this account?",
+ "reactivate-confirm-title": "Are you sure you want to reactivate this account?"
},
"add-member": "Add member",
"admin": {
@@ -3259,7 +3259,7 @@
"regenerate-token": "Regenerate token",
"regenerate-token-warning": "The current token stops working immediately and you will need to update the application provisioning config. Continue?",
"secret-token": "Secret Token",
- "secret-token-tip": "The verification token for the endpoint. Please keep it in secret.",
+ "secret-token-tip": "The verification token for the endpoint. Keep it secret.",
"self": "Sync from SCIM",
"token-configured": "A token is configured. It cannot be displayed again — regenerate if you no longer have it.",
"token-not-configured": "No token has been generated yet.",
@@ -3290,8 +3290,8 @@
"reset-service-key": "Reset Service Key",
"reset-service-key-alert": "This action cannot be undone. The old key will stop working immediately. Are you sure you want to reset this service key?",
"revoke-access": "Revoke Access",
- "revoke-access-alert": "Are you sure to revoke access?",
- "revoke-allusers-alert": "Revoke \"All users\" will revoke related roles from all other users in your workspace. Are you sure to continue?",
+ "revoke-access-alert": "Are you sure you want to revoke access?",
+ "revoke-allusers-alert": "Revoking \"All users\" will revoke the related roles from all other users in your workspace. Are you sure you want to continue?",
"revoked": "Revoked",
"search-member": "Search member",
"select-account-hint": "You can search for users and groups, or input the entire email to select the service account or workload identity.",
@@ -3343,9 +3343,9 @@
"display-name-placeholder": "Enter your name",
"email": "Email",
"password": "Password",
- "password-confirm": "Password Confirm",
+ "password-confirm": "Confirm password",
"password-confirm-placeholder": "Confirm new password",
- "password-hint": "Password should follow restriction setting",
+ "password-hint": "Your password must meet the password requirements",
"password-mismatch": "New password mismatch",
"phone": "Phone",
"phone-tips": "Be sure to include the country code +1xxxxxx"
@@ -3673,8 +3673,8 @@
"duration-hours": "{{hours}} hours",
"execute-query": "Execute query",
"executing-query": "Executing query",
- "expire-at": "Expire at {{time}}",
- "expire-in": "Expire in {{time}}",
+ "expire-at": "Expires at {{time}}",
+ "expire-in": "Expires in {{time}}",
"expired": "Expired",
"explain": "Explain",
"explain-hint": "Show the plan without running the query",
@@ -3709,7 +3709,7 @@
"no-data-available": "No data available",
"no-database-selected": "No database selected",
"no-history-found": "No history found",
- "no-queriable-database": "No queriable database",
+ "no-queriable-database": "No queryable databases",
"notify-empty-statement": "Please input your SQL statements in the editor",
"only-select-allowed": "Only read-only statements are allowed to execute.",
"open-in-new-tab": "Open in new tab",
@@ -3720,7 +3720,7 @@
"plan-view": "Plan",
"previous-row": "Previous Row",
"query-context": {
- "admin-data-source-is-disallowed-to-query": "Admin data source is disallowed to query."
+ "admin-data-source-is-disallowed-to-query": "Querying the admin data source is not allowed."
},
"query-history-not-found": "Query history not found or no longer accessible",
"query-plan-estimated": "A new plan, made just now. It may differ from the plan that ran.",
@@ -4015,7 +4015,7 @@
"n-license-remain": "{{n}} remaining",
"project-instance-hint": "This list only includes workspace instances. To manage a project instance license, open its instance detail page.",
"require-license": "Require instance license",
- "success-notification": "Successfully update license assignment",
+ "success-notification": "License assignment updated successfully",
"used-and-total-instance": "Active / Total Instance Limit",
"used-and-total-license": "Assigned / Total Instance License",
"used-and-total-user": "Active / Total User Limit"
@@ -4094,8 +4094,8 @@
"total-price": "Total Price",
"update": "Update Subscription"
},
- "request-n-days-trial": "Request {{days}} days trial (no credit card required)",
- "require-subscription": "This feature requires {{requiredPlan}} subscription, please purchase Bytebase license to unlock it.",
+ "request-n-days-trial": "Request a {{days}}-day trial (no credit card required)",
+ "require-subscription": "This feature requires a subscription to {{requiredPlan}}. Purchase a Bytebase license to unlock it.",
"required-plan-with-trial": "This feature requires {{requiredPlan}}. {{startTrial}}",
"trial-for-days": "You can start a free trial for {{days}} days - no credit card required.",
"trialing": "trialing",
@@ -4106,7 +4106,7 @@
"title": "Failed to update license"
},
"success": {
- "description": "Premium features in subscription plan unlocked.",
+ "description": "The premium features in your subscription plan are now unlocked.",
"title": "Successfully updated license"
}
},
@@ -4234,7 +4234,7 @@
"no-blocking-sessions": "No blocking sessions",
"no-session-found": "No session found",
"rollback": {
- "available": "{{count}} rollback available",
+ "available": "Available rollbacks: {{count}}",
"no-statement-generated": "No statement generated",
"preview-statement": {
"description": "Review the generated rollback statements before creating the rollback plan."
@@ -4286,7 +4286,7 @@
"enter-the-text": "enter the text",
"self": "Scan the QR code"
},
- "self": "Setup authenticator app",
+ "self": "Set up an authenticator app",
"time-remaining": "Time remaining: {{time}}",
"verify-code": "Verify the code from the app"
}
diff --git a/frontend/src/locales/sql-review/en-US.json b/frontend/src/locales/sql-review/en-US.json
index 9aaecdf7ef..d86ae51fbb 100644
--- a/frontend/src/locales/sql-review/en-US.json
+++ b/frontend/src/locales/sql-review/en-US.json
@@ -31,16 +31,16 @@
},
"attach-resource": {
"change-resources": "Change attached resources",
- "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.",
+ "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fall back to the environment-level policy.",
"label-environment": "The SQL review policy will affect all databases belonging to the selected environment.",
"label-project": "The SQL review policy will affect all databases belonging to the selected project. This will supersede the database environment-level policy.",
"no-linked-resources": "No attached resources",
- "override-warning": "Following resources already bound with other SQL review policies. Click \"{{button}}\" will override the config.",
+ "override-warning": "The following resources are already linked to other SQL review policies. Clicking \"{{button}}\" will override the configuration.",
"self": "Attach to resources"
},
"category": {
"advice": "Advice",
- "builtin": "Builtin rules",
+ "builtin": "Built-in rules",
"column": "Column",
"database": "Database",
"engine": "Engine",
@@ -57,7 +57,7 @@
"choose-template": "Choose template",
"display-name": "Display name",
"display-name-default": "SQL review policy",
- "display-name-label": "A display name to help identifying among different review policies.",
+ "display-name-label": "A display name to distinguish this review policy from others.",
"name": "Basic info"
},
"configure-rule": {
@@ -68,7 +68,7 @@
},
"delete": "Delete SQL review policy",
"delete-description": "The SQL review policy and all its rules will be permanently removed. This cannot be undone.",
- "description": "SQL review policy can define different set of SQL lint rules for the respective environments. It helps teams to adopt SQL best practice and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.",
+ "description": "SQL review policies can define different sets of SQL lint rules for different environments. They help teams adopt SQL best practices and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.",
"disable-description": "Disabling this policy will stop enforcing its rules on the attached resources. You can re-enable it later.",
"disabled": "SQL review is disabled",
"enable-description": "Enabling this policy will start enforcing its rules on the attached resources.",
@@ -124,7 +124,7 @@
"title": "Online migration"
},
"BUILTIN_PRIOR_BACKUP_CHECK": {
- "description": "This rule checks whether a backup can be created before data changes. It verifies the existence of the backup target database and disallows non-supported scenarios. It's builtin and cannot skip.",
+ "description": "This rule checks whether a backup can be created before data changes. It verifies the existence of the backup target database and disallows non-supported scenarios. It is built in and cannot be skipped.",
"title": "Prior backup feasibility check"
},
"BUILTIN_STATEMENT_MAXIMUM_SQL_SIZE": {
@@ -150,7 +150,7 @@
"title": "Restrict the initial value of auto-increment columns"
},
"COLUMN_AUTO_INCREMENT_MUST_INTEGER": {
- "description": "MySQL's auto-increment column are generally used as business-independent primary key. Using integer types occupies less storage space and makes the primary key index structure more compact, bringing better query and DML performance. Suggested error level: Error",
+ "description": "MySQL's auto-increment columns are generally used as business-independent primary keys. Using integer types occupies less storage space and makes the primary key index structure more compact, bringing better query and DML performance. Suggested error level: Error",
"title": "Enforce the use of \"INTEGER\" data type for auto-increment columns"
},
"COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {
@@ -194,8 +194,8 @@
"title": "Prohibit dropping columns"
},
"COLUMN_DISALLOW_DROP_IN_INDEX": {
- "description": "Prohibit dropping columns in index. Suggested error level: Error",
- "title": "Prohibit dropping columns in index"
+ "description": "Prohibit dropping indexed columns. Suggested error level: Error",
+ "title": "Prohibit dropping indexed columns"
},
"COLUMN_DISALLOW_SET_CHARSET": {
"description": "It is recommended to set the charset at the database level or table level. Setting the charset at finer granularity can bring unnecessary complexities. Suggested error level: Error.",
@@ -220,7 +220,7 @@
"title": "Restrict the length of \"VARCHAR\" data type"
},
"COLUMN_NO_NULL": {
- "description": "Columns cannot have NULL value.",
+ "description": "Columns cannot have NULL values.",
"title": "Enforce \"NOT NULL\" constraints on columns"
},
"COLUMN_REQUIRED": {
@@ -241,11 +241,11 @@
"title": "Require collation for text columns"
},
"COLUMN_REQUIRE_DEFAULT": {
- "description": "Setting default values that satisfy business logic can effectively improve the data quality of downstream analytical pipeline. This rule does not check \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\" types. Suggested error level: Warning",
+ "description": "Setting default values that satisfy business logic can effectively improve the data quality of downstream analytical pipelines. This rule does not check \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\" types. Suggested error level: Warning",
"title": "Enforce setting default value on columns"
},
"COLUMN_SET_DEFAULT_FOR_NOT_NULL": {
- "description": "For a 'NOT NULL' column, if a value is not assigned to the column when inserting a new row and the column does not have a default value, the database will reject the insertion of that row. Setting a default value for a new column can also ensure compatibility with legacy application. Suggested error level: Error",
+ "description": "For a 'NOT NULL' column, if a value is not assigned to the column when inserting a new row and the column does not have a default value, the database will reject the insertion of that row. Setting a default value for a new column can also ensure compatibility with legacy applications. Suggested error level: Error",
"title": "Enforce default value on \"NOT NULL\" columns"
},
"COLUMN_TYPE_DISALLOW_LIST": {
@@ -254,7 +254,7 @@
"title": "Disallow list"
}
},
- "description": "Abusing column types can have serious negative effects on system maintainability and performance. For example, using \"LOB\" column to store large amounts of audio and video data may cause database performance to decrease, backup and recovery times to lengthen, and data synchronization tools incompatible. Suggested error level: Error",
+ "description": "Abusing column types can have serious negative effects on system maintainability and performance. For example, using a \"LOB\" column to store large amounts of audio and video data may cause database performance to decrease, backup and recovery times to lengthen, and data synchronization tools to become incompatible. Suggested error level: Error",
"title": "Prohibit the use of certain column data types"
},
"DATABASE_DROP_EMPTY_DATABASE": {
@@ -266,7 +266,7 @@
"title": "Enforce InnoDB storage engine"
},
"INDEX_CREATE_CONCURRENTLY": {
- "description": "In PostgreSQL 11 and above, using the standard statement to create an index will cause table locking and unable to write. Using the \"CONCURRENTLY\" mode can avoid this problem. Suggested error level: Warning",
+ "description": "In PostgreSQL 11 and above, using the standard statement to create an index will lock the table and prevent writes. Using the \"CONCURRENTLY\" mode can avoid this problem. Suggested error level: Warning",
"title": "Enforce concurrent index creation"
},
"INDEX_KEY_NUMBER_LIMIT": {
@@ -279,7 +279,7 @@
"title": "Restrict the number of columns in a single index"
},
"INDEX_NOT_REDUNDANT": {
- "description": "Redundant index may result in performance loss and occupy additional space. For example, the index on columns (c1, c2) will be treated as redundant indexes if there is already a index on column (c1). Suggested error level: Warning",
+ "description": "Redundant index may result in performance loss and occupy additional space. For example, the index on columns (c1, c2) will be treated as redundant indexes if there is already an index on column (c1). Suggested error level: Warning",
"title": "Disallow redundant indexes"
},
"INDEX_NO_DUPLICATE_COLUMN": {
@@ -296,7 +296,7 @@
"title": "Allow list"
}
},
- "description": "The appropriate primary key type can optimize storage structure, reduce space usage, and beneficial for insert and query performance. Suggested error level: Warning",
+ "description": "The appropriate primary key type can optimize storage structure, reduce space usage, and improve insert and query performance. Suggested error level: Warning",
"title": "Allowable list of primary key types"
},
"INDEX_TOTAL_NUMBER_LIMIT": {
@@ -466,7 +466,7 @@
"title": "Maximum affected rows"
}
},
- "description": "Reveal the number of rows to be updated or deleted can help determine whether the statement meets business expectations. Suggested error level: Warning",
+ "description": "Showing the number of rows to be updated or deleted can help determine whether the statement meets business expectations. Suggested error level: Warning",
"title": "Restrict the maximum number of updated or deleted rows (estimated)."
},
"STATEMENT_CHECK_SET_ROLE_VARIABLE": {
@@ -478,11 +478,11 @@
"title": "Prohibit creating objects without specifying the schema"
},
"STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {
- "description": "Before PostgreSQL 11, adding a column with a default value cause table locking and unable to read and write, which may cause business interruption. In PostgreSQL 11 and above, this issue has been optimized and there is no need to pay attention to this rule. Suggested error level: Warning",
+ "description": "Before PostgreSQL 11, adding a column with a default value causes table locking and prevents reads and writes, which may cause business interruption. In PostgreSQL 11 and above, this issue has been optimized and there is no need to pay attention to this rule. Suggested error level: Warning",
"title": "Restrict adding columns with default values to a table"
},
"STATEMENT_DISALLOW_ADD_NOT_NULL": {
- "description": "Adding NOT NULL constraint with default value before PostgreSQL 11 or adding NOT NULL constraint without default value requires to verify the existing data. This blocks read and write, which may cause business interruption. Suggested error level: Warning",
+ "description": "Adding a NOT NULL constraint with a default value before PostgreSQL 11, or adding a NOT NULL constraint without a default value, requires verifying the existing data. This blocks reads and writes, which may cause business interruption. Suggested error level: Warning",
"title": "Restrict adding \"NOT NULL\" constraint to existing columns"
},
"STATEMENT_DISALLOW_COMMIT": {
@@ -494,7 +494,7 @@
"title": "Disallow cross database queries"
},
"STATEMENT_DISALLOW_LIMIT": {
- "description": "If LIMIT is used in DML statements without an ORDER BY clause, the affected rows order are not fixed, which may cause data inconsistency between the primary and replica databases in some replication modes. Suggested error level: Error",
+ "description": "If LIMIT is used in DML statements without an ORDER BY clause, the order of affected rows is not fixed, which may cause data inconsistency between the primary and replica databases in some replication modes. Suggested error level: Error",
"title": "Prohibit using \"LIMIT\" clause in DML statements"
},
"STATEMENT_DISALLOW_OFFLINE_DDL": {
@@ -526,7 +526,7 @@
"title": "Prohibit using \"ORDER BY rand()\" in \"INSERT\" statement"
},
"STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {
- "description": "The \"INSERT INTO table VALUES (...)\" statement does not explicit list column names. Once the column order changes or columns are added or dropped, the statement may fail or generate unexpected data. Suggested error level: Error",
+ "description": "The \"INSERT INTO table VALUES (...)\" statement does not explicitly list column names. Once the column order changes or columns are added or dropped, the statement may fail or generate unexpected data. Suggested error level: Error",
"title": "Enforce specifying column names in \"INSERT\" statements"
},
"STATEMENT_INSERT_ROW_LIMIT": {
@@ -535,7 +535,7 @@
"title": "Maximum insert amount"
}
},
- "description": "Reveal the number of rows to be inserted can help determine whether the statement meets business expectations. Suggested error level: Warning",
+ "description": "Showing the number of rows to be inserted can help determine whether the statement meets business expectations. Suggested error level: Warning",
"title": "Restrict the maximum number of inserted rows"
},
"STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {
@@ -551,13 +551,13 @@
"description": "Set the maximum execution time for SQL statements. If the execution time exceeds the limit, the statement will be terminated. Suggested error level: Warning",
"mariadb": {
"description": "Set the MAX_STATEMENT_TIME parameter in the change script to explicitly control the maximum execution time of the statement. Suggested error level: Warning",
- "title": "Enforce set the MAX_STATEMENT_TIME parameter explicitly"
+ "title": "Require an explicit MAX_STATEMENT_TIME parameter"
},
"mysql": {
"description": "Set the MAX_EXECUTION_TIME parameter in the change script to explicitly control the maximum execution time of the statement. Suggested error level: Warning",
- "title": "Enforce set the MAX_EXECUTION_TIME parameter explicitly"
+ "title": "Require an explicit MAX_EXECUTION_TIME parameter"
},
- "title": "Enforce set the max execution time parameter"
+ "title": "Require an explicit maximum execution time"
},
"STATEMENT_MERGE_ALTER_TABLE": {
"description": "Every change to a table may cause a table-level lock and consume a large amount of resources. If there are multiple changes to the same table, they should be merged into a single change statement. Suggested error level: Error",
@@ -601,7 +601,7 @@
"title": "Prohibit using NULL equality comparison in WHERE clause"
},
"STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {
- "description": "When using leading wildcard, such as \"LIKE '%ABC'\", the database optimizer cannot use fast index scan, and fallback to full table scan or full index scan, which may cause serious performance impact. Suggested error level: Error",
+ "description": "When using a leading wildcard, such as \"LIKE '%ABC'\", the database optimizer cannot use a fast index scan and falls back to a full table scan or full index scan, which may cause serious performance impact. Suggested error level: Error",
"title": "Prohibit using leading wildcard in filter conditions"
},
"STATEMENT_WHERE_REQUIRE_SELECT": {
@@ -641,7 +641,7 @@
},
"SYSTEM_EVENT_DISALLOW_CREATE": {
"description": "This rule prohibits the creation of events within the database. System events often perform automated tasks that could affect the database environment. By disallowing their creation, it helps maintain control over database operations and prevents potential disruptions. Suggested error level: Warning",
- "title": "Disallow to create events"
+ "title": "Prohibit creating events"
},
"SYSTEM_FUNCTION_DISALLOWED_LIST": {
"component": {
@@ -654,15 +654,15 @@
},
"SYSTEM_FUNCTION_DISALLOW_CREATE": {
"description": "This rule prohibits the creation of functions within the database. Functions provide reusable logic that can simplify queries and enhance data integrity. By disallowing their creation, it helps maintain control over database schema and prevents potential security risks. Suggested error level: Warning",
- "title": "Disallow to create functions"
+ "title": "Prohibit creating functions"
},
"SYSTEM_PROCEDURE_DISALLOW_CREATE": {
"description": "This rule prohibits the execution of procedures within the database. System procedures often perform critical operations that could impact the stability and security of the database environment. By disallowing their execution, it helps prevent unintended changes and potential vulnerabilities. Suggested error level: Warning",
- "title": "Disallow to create procedures"
+ "title": "Prohibit creating procedures"
},
"SYSTEM_VIEW_DISALLOW_CREATE": {
"description": "This rule prohibits the creation of views within the database. Views provide a virtual representation of data that can simplify queries and enhance data security. By disallowing their creation, it helps maintain control over database schema and prevents potential security risks. Suggested error level: Warning",
- "title": "Disallow to create views"
+ "title": "Prohibit creating views"
},
"TABLE_COMMENT": {
"component": {
@@ -828,7 +828,7 @@
"bb-sql-review-prod": "Advanced Template",
"bb-sql-review-prod-desc": "Comprehensive policy where you have total protection and best practices for your databases.",
"bb-sql-review-sample": "Sample Template",
- "bb-sql-review-sample-desc": "A minimum template with DROP protection and disallow column nullable."
+ "bb-sql-review-sample-desc": "A minimal template that prevents DROP operations and requires non-nullable columns."
},
"title": "SQL Review",
"validation": {
diff --git a/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts b/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts
index c055cf1107..8dcf6ff4eb 100644
--- a/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts
+++ b/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts
@@ -24,12 +24,12 @@ const templates: Record<string, string> = {
"plan.summary.n-changes": "{{n}} changes",
"plan.summary.n-database-groups": "{{n}} database groups",
"plan.summary.n-databases": "{{n}} databases",
- "plan.summary.n-error": "{{n}} error",
+ "plan.summary.n-error": "Errors: {{n}}",
"plan.summary.n-of-m-approved": "{{n}} of {{m}} approved",
"plan.summary.n-of-m-tasks": "{{n}}/{{m}} tasks",
"plan.summary.n-passed": "{{n}} passed",
"plan.summary.n-unresolved-threads": "{{count}} unresolved threads",
- "plan.summary.n-warning": "{{n}} warning",
+ "plan.summary.n-warning": "Warnings: {{n}}",
"plan.summary.approved-by": "Approved by {{names}}",
"plan.summary.no-approval-required": "No approval required",
"plan.findings.n-resolved": "{{count}} resolved",
@@ -81,7 +81,7 @@ describe("plan detail phase summaries", () => {
} as unknown as Plan;
expect(buildChangesSummary(plan, t)).toBe(
- "2 changes · 2 databases and 1 database groups · 2 passed, 1 warning, 1 error"
+ "2 changes · 2 databases and 1 database groups · 2 passed, Warnings: 1, Errors: 1"
);
});