From f6d72c1de531b91061d18061b15193b9fff9aa4e Mon Sep 17 00:00:00 2001 From: Vincent Kling Date: Fri, 23 May 2025 07:44:15 +0200 Subject: [PATCH 1/2] add Dutch UI translations --- .github/CODEOWNERS | 1 + .../src/airflow/ui/src/i18n/config.ts | 7 ++ .../ui/src/i18n/locales/de/common.json | 1 + .../ui/src/i18n/locales/en/common.json | 1 + .../ui/src/i18n/locales/ko/common.json | 1 + .../ui/src/i18n/locales/nl/common.json | 80 +++++++++++++++++++ .../ui/src/i18n/locales/nl/dashboard.json | 38 +++++++++ .../ui/src/i18n/locales/zh-TW/common.json | 1 + 8 files changed, 130 insertions(+) create mode 100644 airflow-core/src/airflow/ui/src/i18n/locales/nl/common.json create mode 100644 airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f46d2e833c64b..06a50e15d3508 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -38,6 +38,7 @@ # Translations airflow-core/src/airflow/ui/src/i18n/locales/de/ @jscheffl airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/ @Lee-W +airflow-core/src/airflow/ui/src/i18n/locales/nl/ @BasPH @DjVinnii # Security/Permissions /airflow-core/src/airflow/security/permissions.py @vincbeck diff --git a/airflow-core/src/airflow/ui/src/i18n/config.ts b/airflow-core/src/airflow/ui/src/i18n/config.ts index 1411f23c6f8de..944ca987bd5e0 100644 --- a/airflow-core/src/airflow/ui/src/i18n/config.ts +++ b/airflow-core/src/airflow/ui/src/i18n/config.ts @@ -26,6 +26,8 @@ import enCommon from "./locales/en/common.json"; import enDashboard from "./locales/en/dashboard.json"; import koCommon from "./locales/ko/common.json"; import koDashboard from "./locales/ko/dashboard.json"; +import nlCommon from "./locales/nl/common.json"; +import nlDashboard from "./locales/nl/dashboard.json"; import zhTWCommon from "./locales/zh-TW/common.json"; import zhTWDashboard from "./locales/zh-TW/dashboard.json"; @@ -36,6 +38,7 @@ export const supportedLanguages = [ { code: "de", name: "Deutsch" }, { code: "en", name: "English" }, { code: "ko", name: "한국어" }, + { code: "nl", name: "Nederlands" }, { code: "zh-TW", name: "繁體中文" }, ] as const; @@ -55,6 +58,10 @@ const resources = { common: koCommon, dashboard: koDashboard, }, + nl: { + common: nlCommon, + dashboard: nlDashboard, + }, "zh-TW": { common: zhTWCommon, dashboard: zhTWDashboard, diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json b/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json index 61e2a27855e57..5f79a7d04266a 100644 --- a/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json +++ b/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json @@ -11,6 +11,7 @@ "en": "Englisch", "de": "Deutsch", "ko": "Koreanisch", + "nl": "Niederländisch", "select": "Sprache wählen" }, "nav": { diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json b/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json index 0d66ca93289d7..4fd2825afc188 100644 --- a/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json +++ b/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json @@ -11,6 +11,7 @@ "en": "English", "de": "German", "ko": "Korean", + "nl": "Dutch", "select": "Select Language" }, "nav": { diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json b/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json index 8012a46319ce9..f9e4ff6815621 100644 --- a/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json +++ b/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json @@ -11,6 +11,7 @@ "en": "영어", "de": "독일어", "ko": "한국어", + "nl": "네덜란드 사람", "select": "언어 선택" }, "nav": { diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/nl/common.json b/airflow-core/src/airflow/ui/src/i18n/locales/nl/common.json new file mode 100644 index 0000000000000..9958533a6543f --- /dev/null +++ b/airflow-core/src/airflow/ui/src/i18n/locales/nl/common.json @@ -0,0 +1,80 @@ +{ + "defaultToGraphView": "Standaard grafiekweergave", + "defaultToGridView": "Standaard rasterweergave", + "logout": "Uitloggen", + "switchToDarkMode": "Schakel over naar donkere modus", + "switchToLightMode": "Schakel over naar lichte modus", + "timezone": "Tijdzone", + "user": "Gebruiker", + "language": { + "zh-TW": "Traditioneel Chinees", + "en": "Engels", + "de": "Duits", + "ko": "Koreaans", + "nl": "Nederlands", + "select": "Selecteer taal" + }, + "nav": { + "home": "Home", + "assets": "Assets", + "browse": "Verken", + "admin": "Beheer", + "docs": "Documentatie", + "plugins": "Plugins" + }, + "browse": { + "auditLog": "Audit Log", + "xcoms": "XComs" + }, + "admin": { + "Variables": "Variabelen", + "Pools": "Pools", + "Providers": "Providers", + "Plugins": "Plugins", + "Connections": "Connecties", + "Config": "Configuratie" + }, + "timeRange": { + "duration": "Duur", + "lastHour": "Laatste uur", + "last12Hours": "Laatste 12 uur", + "last24Hours": "Laatste 24 uur", + "pastWeek": "Laatste week" + }, + "docs": { + "documentation": "Documentatie", + "githubRepo": "GitHub Repo", + "restApiReference": "REST API referentie" + }, + "states": { + "queued": "Wachtend", + "running": "Lopend", + "success": "Succesvol", + "failed": "Mislukt", + "skipped": "Overgeslagen", + "removed": "Verwijderd", + "scheduled": "Gepland", + "restarting": "Herstartend", + "up_for_retry": "Wachtend op een nieuwe poging", + "up_for_reschedule": "Wachtend op herplanning", + "upstream_failed": "Upstream mislukt", + "deferred": "Uitgesteld", + "no_status": "Geen Status" + }, + "dagRun_one": "Dag Run", + "dagRun_other": "Dag Runs", + "taskInstance_one": "Task Instance", + "taskInstance_other": "Task Instances", + "assetEvent_one": "Asset Event", + "assetEvent_other": "Asset Events", + "triggered": "Triggered", + "pools": { + "open": "Open", + "running": "Lopend", + "queued": "Wachtend", + "scheduled": "Gepland", + "deferred": "Uitgesteld", + "pools_one": "pool", + "pools_other": "pools" + } +} diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json b/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json new file mode 100644 index 0000000000000..47a682052c3f1 --- /dev/null +++ b/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json @@ -0,0 +1,38 @@ +{ + "welcome": "Welkom", + "stats": { + "stats": "Statistieken", + "failedDags": "Mislukte Dags", + "runningDags": "Lopende Dags", + "activeDags": "Actieve Dags", + "queuedDags": "Dags in de wachtrij" + }, + "health": { + "health": "Gezondheid", + "metaDatabase": "MetaDatabase", + "scheduler": "Scheduler", + "triggerer": "Triggerer", + "dagProcessor": "Dag Processor", + "status": "Status", + "lastHeartbeat": "Laatste hartslag", + "healthy": "Gezond", + "unhealthy": "Ongezond" + }, + "importErrors": { + "searchByFile": "Zoek op bestand", + "dagImportError_one": "Dag importfout", + "dagImportError_other": "Dag importfouten", + "timestamp": "Tijd" + }, + "poolSlots": "Pool Slots", + "managePools": "Beheer Pools", + "history": "Geschiedenis", + "sortBy": { + "newestFirst": "Nieuwste eerst", + "oldestFirst": "Oudste eerst" + }, + "source": "Bron", + "group": "Groep", + "uri": "Uri", + "noAssetEvents": "Geen Asset Events gevonden." +} diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json b/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json index 9c2769f9768e2..ab12771fd07bf 100644 --- a/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json +++ b/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json @@ -11,6 +11,7 @@ "en": "英文", "de": "德文", "ko": "韓國人", + "nl": "荷蘭語", "select": "選擇語言" }, "nav": { From 3fefe032fddadfecfc66160cf1a1fce6e370af16 Mon Sep 17 00:00:00 2001 From: Vincent Kling Date: Tue, 27 May 2025 13:04:07 +0200 Subject: [PATCH 2/2] Apply suggestions --- .../src/airflow/ui/src/i18n/locales/nl/dashboard.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json b/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json index 47a682052c3f1..0577d6cfbcff5 100644 --- a/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json +++ b/airflow-core/src/airflow/ui/src/i18n/locales/nl/dashboard.json @@ -8,20 +8,20 @@ "queuedDags": "Dags in de wachtrij" }, "health": { - "health": "Gezondheid", + "health": "Status", "metaDatabase": "MetaDatabase", "scheduler": "Scheduler", "triggerer": "Triggerer", "dagProcessor": "Dag Processor", "status": "Status", "lastHeartbeat": "Laatste hartslag", - "healthy": "Gezond", - "unhealthy": "Ongezond" + "healthy": "OK", + "unhealthy": "Fout" }, "importErrors": { "searchByFile": "Zoek op bestand", - "dagImportError_one": "Dag importfout", - "dagImportError_other": "Dag importfouten", + "dagImportError_one": "Dag leesfout", + "dagImportError_other": "Dag leesfouten", "timestamp": "Tijd" }, "poolSlots": "Pool Slots",