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..77afeafef5ac3 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", @@ -27,9 +27,9 @@ "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" + "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", + "searchPlaceholder": "Search $t(connections.connection_other)", + "test": "Test $t(connections.connection_one)", "testDisabled": "Test connection 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", + "title": "Delete $t(pools.pool_one)", "warning": "This will remove all metadata related to the pool and may affect tasks using this pool." }, - "edit": "Edit Pool", + "edit": "Edit $t(pools.pool_one)", "form": { "checkbox": "Check to include deferred tasks when calculating open pool slots", "description": "Description", @@ -126,7 +126,7 @@ "noPoolsFound": "No pools 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", + "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 variable:", "firstConfirmMessage_other": "You are about to delete the following variables:", - "title": "Delete Variable", + "title": "Delete $t(variables.variable_one)", "tooltip": "Delete selected variables" }, - "edit": "Edit Variable", + "edit": "Edit $t(variables.variable_one)", "form": { "invalidJson": "Invalid JSON", "keyMaxLength": "Key can contain a maximum of 250 characters", 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 3aaa5115bb2f5..72360325c3f17 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": { @@ -232,8 +232,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": { 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)" }