diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/en/admin.json b/airflow-core/src/airflow/ui/public/i18n/locales/en/admin.json index 1b02ee5b9b448..2451a1246d33d 100644 --- a/airflow-core/src/airflow/ui/public/i18n/locales/en/admin.json +++ b/airflow-core/src/airflow/ui/public/i18n/locales/en/admin.json @@ -13,7 +13,7 @@ "title": "Airflow Configuration" }, "connections": { - "add": "Add Connection", + "add": "Add $t(connections.connection_one)", "columns": { "connectionId": "Connection ID", "connectionType": "Connection Type", @@ -23,13 +23,13 @@ "connection_one": "Connection", "connection_other": "Connections", "delete": { - "deleteConnection_one": "Delete 1 connection", - "deleteConnection_other": "Delete {{count}} connections", - "firstConfirmMessage_one": "You are about to delete the following connection:", - "firstConfirmMessage_other": "You are about to delete the following connections:", - "title": "Delete Connection" + "deleteConnection_one": "Delete 1 $t(connections.connection_one)", + "deleteConnection_other": "Delete {{count}} $t(connections.connection_other)", + "firstConfirmMessage_one": "You are about to delete the following $t(connections.connection_one):", + "firstConfirmMessage_other": "You are about to delete the following $t(connections.connection_other):", + "title": "Delete $t(connections.connection_one)" }, - "edit": "Edit Connection", + "edit": "Edit $t(connections.connection_one)", "form": { "connectionIdRequired": "Connection ID is required", "connectionIdRequirement": "Connection ID cannot contain only spaces", @@ -47,14 +47,14 @@ "learnMore": "These are resolved at runtime and are not visible in the UI.", "title": "No connection found!" }, - "searchPlaceholder": "Search Connections", - "test": "Test Connection", - "testDisabled": "Test connection feature is disabled. Please contact an administrator to enable it.", + "searchPlaceholder": "Search $t(connections.connection_other)", + "test": "Test $t(connections.connection_one)", + "testDisabled": "Test $t(connections.connection_one) feature is disabled. Please contact an administrator to enable it.", "testError": { - "title": "Test Connection Failed" + "title": "Test $t(connections.connection_one) Failed" }, "testSuccess": { - "title": "Test Connection Successful" + "title": "Test $t(connections.connection_one) Successful" }, "typeMeta": { "error": "Failed to retrieve Connection Type Meta", @@ -107,13 +107,13 @@ "searchPlaceholder": "Search by file" }, "pools": { - "add": "Add Pool", + "add": "Add $t(pools.pool_one)", "deferredSlotsIncluded": "Deferred Slots Included", "delete": { - "title": "Delete Pool", - "warning": "This will remove all metadata related to the pool and may affect tasks using this pool." + "title": "Delete $t(pools.pool_one)", + "warning": "This will remove all metadata related to the $t(pools.pool_one) and may affect tasks using this $t(pools.pool_one)." }, - "edit": "Edit Pool", + "edit": "Edit $t(pools.pool_one)", "form": { "checkbox": "Check to include deferred tasks when calculating open pool slots", "description": "Description", @@ -123,10 +123,10 @@ "slots": "Slots", "slotsHelperText": "Use -1 for unlimited slots." }, - "noPoolsFound": "No pools found", + "noPoolsFound": "No $t(pools.pool_other) found", "pool_one": "Pool", "pool_other": "Pools", - "searchPlaceholder": "Search Pools", + "searchPlaceholder": "Search $t(pools.pool_other)", "sort": { "asc": "Name (A-Z)", "desc": "Name (Z-A)", @@ -140,19 +140,19 @@ } }, "variables": { - "add": "Add Variable", + "add": "Add $t(variables.variable_one)", "columns": { "isEncrypted": "Is Encrypted" }, "delete": { - "deleteVariable_one": "Delete 1 Variable", - "deleteVariable_other": "Delete {{count}} Variables", - "firstConfirmMessage_one": "You are about to delete the following variable:", - "firstConfirmMessage_other": "You are about to delete the following variables:", - "title": "Delete Variable", - "tooltip": "Delete selected variables" - }, - "edit": "Edit Variable", + "deleteVariable_one": "Delete 1 $t(variables.variable_one)", + "deleteVariable_other": "Delete {{count}} $t(variables.variable_other)", + "firstConfirmMessage_one": "You are about to delete the following $t(variables.variable_one):", + "firstConfirmMessage_other": "You are about to delete the following $t(variables.variable_other):", + "title": "Delete $t(variables.variable_one)", + "tooltip": "Delete selected $t(variables.variable_other)" + }, + "edit": "Edit $t(variables.variable_one)", "form": { "invalidJson": "Invalid JSON", "keyMaxLength": "Key can contain a maximum of 250 characters", @@ -179,9 +179,9 @@ }, "title": "Import Variables", "upload": "Upload a JSON File", - "uploadPlaceholder": "Upload a JSON file containing variables (e.g., {\"key\": \"value\", ...})" + "uploadPlaceholder": "Upload a JSON file containing $t(variables.variable_other) (e.g., {\"key\": \"value\", ...})" }, - "noRowsMessage": "No variables found", + "noRowsMessage": "No $t(variables.variable_other) found", "searchPlaceholder": "Search Keys", "variable_one": "Variable", "variable_other": "Variables" diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json b/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json index 8eea401e69a81..3879d914524f0 100644 --- a/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json +++ b/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json @@ -16,8 +16,8 @@ }, "asset_one": "Asset", "asset_other": "Assets", - "assetEvent_one": "Asset Event", - "assetEvent_other": "Asset Events", + "assetEvent_one": "$t(asset_one) Event", + "assetEvent_other": "$t(asset_one) Events", "assetInactive": { "tooltip": "Upstream asset has been deactivated; the scheduler is holding partition evaluation until it is reactivated." }, @@ -33,8 +33,8 @@ "collapseAllExtra": "Collapse all extra JSON", "collapseDetailsPanel": "Collapse Details Panel", "consumingAsset": "Consuming Asset", - "createdAssetEvent_one": "Created Asset Event", - "createdAssetEvent_other": "Created Asset Events", + "createdAssetEvent_one": "Created $t(assetEvent_one)", + "createdAssetEvent_other": "Created $t(assetEvent_other)", "dag_one": "Dag", "dag_other": "Dags", "dagDetails": { @@ -59,7 +59,7 @@ "schedule": "Schedule", "tags": "Tags" }, - "dagId": "Dag ID", + "dagId": "$t(dag_one) ID", "dagRun": { "conf": "Conf", "dagVersions": "Dag Version(s)", @@ -80,9 +80,9 @@ "triggeredBy": "Triggered By", "triggeringUser": "Triggering User" }, - "dagRun_one": "Dag Run", - "dagRun_other": "Dag Runs", - "dagRunId": "Dag Run ID", + "dagRun_one": "$t(dag_one) Run", + "dagRun_other": "$t(dag_one) Runs", + "dagRunId": "$t(dagRun_one) ID", "dagWarnings": "Dag warnings/errors", "defaultToGraphView": "Default to graph view", "defaultToGridView": "Default to grid view", @@ -180,13 +180,13 @@ "placeholder": "Add a note...", "taskInstance": "Task Instance Note" }, - "partitionedDagRun_one": "Partitioned Dag Run", - "partitionedDagRun_other": "Partitioned Dag Runs", + "partitionedDagRun_one": "Partitioned $t(dagRun_one)", + "partitionedDagRun_other": "Partitioned $t(dagRun_other)", "partitionedDagRunDetail": { "receivedAssetEvents": "Received Asset Events" }, - "pendingDagRun_one": "{{count}} Pending Dag Run", - "pendingDagRun_other": "{{count}} Pending Dag Runs", + "pendingDagRun_one": "{{count}} Pending $t(dagRun_one)", + "pendingDagRun_other": "{{count}} Pending $t(dagRun_other)", "reset": "Reset", "runId": "Run ID", "runTypes": { @@ -225,8 +225,8 @@ "hotkey": "s", "show": "Show Source" }, - "sourceAssetEvent_one": "Source Asset Event", - "sourceAssetEvent_other": "Source Asset Events", + "sourceAssetEvent_one": "Source $t(assetEvent_one)", + "sourceAssetEvent_other": "Source $t(assetEvent_other)", "startDate": "Start Date", "state": "State", "states": { @@ -277,9 +277,9 @@ "taskGroup": { "documentation": "Task Group Documentation" }, - "taskGroup_one": "Task Group", - "taskGroup_other": "Task Groups", - "taskId": "Task ID", + "taskGroup_one": "$t(task_one) Group", + "taskGroup_other": "$t(task_one) Groups", + "taskId": "$t(task_one) ID", "taskInstance": { "dagVersion": "Dag Version", "executor": "Executor", @@ -304,8 +304,8 @@ }, "unixname": "Unix Name" }, - "taskInstance_one": "Task Instance", - "taskInstance_other": "Task Instances", + "taskInstance_one": "$t(task_one) Instance", + "taskInstance_other": "$t(task_one) Instances", "timeRange": { "last12Hours": "Last 12 Hours", "last24Hours": "Last 24 Hours", diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/en/dags.json b/airflow-core/src/airflow/ui/public/i18n/locales/en/dags.json index dc40390745709..30fefed93f5d8 100644 --- a/airflow-core/src/airflow/ui/public/i18n/locales/en/dags.json +++ b/airflow-core/src/airflow/ui/public/i18n/locales/en/dags.json @@ -2,11 +2,11 @@ "assetSchedule": "{{count}} of {{total}} assets updated", "dagActions": { "delete": { - "button": "Delete Dag", - "warning": "This will remove all metadata related to the Dag, including Runs and Tasks." + "button": "Delete $t(common:dag_one)", + "warning": "This will remove all metadata related to the $t(common:dag_one), including Runs and $t(common:task_other)." } }, - "favoriteDag": "Favorite Dag", + "favoriteDag": "Favorite $t(common:dag_one)", "filters": { "allRunTypes": "All Run Types", "allStates": "All States", @@ -79,9 +79,9 @@ "search": { "advanced": "Advanced Search", "clear": "Clear search", - "dags": "Search Dags", + "dags": "Search $t(common:dag_other)", "hotkey": "+K", - "tasks": "Search Tasks" + "tasks": "Search $t(common:task_other)" }, "sort": { "displayName": { @@ -102,5 +102,5 @@ }, "placeholder": "Sort by" }, - "unfavoriteDag": "Unfavorite Dag" + "unfavoriteDag": "Unfavorite $t(common:dag_one)" }