Skip to content

Commit 7326aa3

Browse files
committed
Extra consolidation plus refactor keys for all other languages
1 parent 83eb04e commit 7326aa3

File tree

22 files changed

+140
-253
lines changed

22 files changed

+140
-253
lines changed

airflow-core/src/airflow/ui/src/components/SearchDags/SearchDags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const SearchDags = ({
8686
loadOptions={searchDagDebounced}
8787
menuIsOpen
8888
onChange={onSelect}
89-
placeholder={translate("search.placeholder")}
89+
placeholder={translate("search.dags")}
9090
// eslint-disable-next-line unicorn/no-null
9191
value={null} // null is required https://github.com/JedWatson/react-select/issues/3066
9292
/>

airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ type Props = {
3333

3434
const TriggerDAGButton: React.FC<Props> = ({ dag, withText = true }) => {
3535
const { onClose, onOpen, open } = useDisclosure();
36-
const { t: translate } = useTranslation("dags");
36+
const { t: translate } = useTranslation("components");
3737

3838
return (
3939
<Box>
4040
<ActionButton
41-
actionName={translate("dagActions.trigger.triggerDag")}
41+
actionName={translate("triggerDag.title")}
4242
colorPalette="blue"
4343
icon={<FiPlay />}
4444
onClick={onOpen}
45-
text={translate("dagActions.trigger.button")}
45+
text={translate("triggerDag.button")}
4646
variant="solid"
4747
withText={withText}
4848
/>

airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const TriggerDAGForm = ({ dagDisplayName, dagId, isPaused, onClose, open }: Trig
169169
disabled={Boolean(errors.conf) || Boolean(errors.date) || formError || isPending}
170170
onClick={() => void handleSubmit(onSubmit)()}
171171
>
172-
<FiPlay /> {translate("components:triggerDag.trigger")}
172+
<FiPlay /> {translate("components:triggerDag.button")}
173173
</Button>
174174
</HStack>
175175
</Box>

airflow-core/src/airflow/ui/src/i18n/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import plDag from "./locales/pl/dag.json";
4545
import plDags from "./locales/pl/dags.json";
4646
import plDashboard from "./locales/pl/dashboard.json";
4747
import zhTWCommon from "./locales/zh-TW/common.json";
48+
import zhTWComponents from "./locales/zh-TW/components.json";
4849
import zhTWConnections from "./locales/zh-TW/connections.json";
4950
import zhTWDags from "./locales/zh-TW/dags.json";
5051
import zhTWDashboard from "./locales/zh-TW/dashboard.json";
@@ -104,6 +105,7 @@ const resources = {
104105
},
105106
"zh-TW": {
106107
common: zhTWCommon,
108+
components: zhTWComponents,
107109
connections: zhTWConnections,
108110
dags: zhTWDags,
109111
dashboard: zhTWDashboard,

airflow-core/src/airflow/ui/src/i18n/locales/de/common.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
"auditLog": "Prüf-Log",
1616
"xcoms": "Task Kommunikation (XComs)"
1717
},
18-
"bundleVersion": "Bündel Version",
1918
"dag_one": "Dag",
2019
"dag_other": "Dags",
2120
"dagDetails": {
22-
"bundleVersion": "Bündel Version",
2321
"catchup": "Nachgeholt",
2422
"concurrency": "Parallelität",
2523
"dagRunTimeout": "Dag Lauf Zeitüberschreitung",
@@ -38,8 +36,7 @@
3836
"owner": "Eigentümer",
3937
"params": "Parameter",
4038
"schedule": "Zeitplan",
41-
"tags": "Markierungen",
42-
"timezone": "Zeitzone"
39+
"tags": "Markierungen"
4340
},
4441
"dagId": "Dag ID",
4542
"dagRun": {

airflow-core/src/airflow/ui/src/i18n/locales/de/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@
8787
"toggleCardView": "Kachelansicht anzeigen",
8888
"toggleTableView": "Tabellenansicht anzeigen",
8989
"triggerDag": {
90+
"button": "Auslösen",
9091
"loading": "Lade DAG Information...",
9192
"loadingFailed": "Das Laden der DAG Information fehlgeschlagen. Bitt versuchen Sie es noch einmal.",
9293
"runIdHelp": "Optional - wird automatisch erzeugt wenn nicht angegeben",
9394
"selectDescription": "Einen einzelnen Lauf dieses Dag auslösen",
9495
"selectLabel": "Einzelner Lauf",
9596
"title": "Dag Auslösen",
96-
"trigger": "Auslösen",
9797
"unpause": "Dag {{dagDisplayName}} beim Auslösen des Laufes aktiv schalten"
9898
},
9999
"versionDetails": {

airflow-core/src/airflow/ui/src/i18n/locales/de/dags.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
"delete": {
55
"button": "Dag löschen",
66
"warning": "Diese Aktion löscht alle Metadaten zu diesem Dag mit allen Läufen und Task Instanzen."
7-
},
8-
"trigger": {
9-
"button": "Auslösen",
10-
"triggerDag": "Dag auslösen"
117
}
128
},
139
"filters": {

airflow-core/src/airflow/ui/src/i18n/locales/en/common.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
"auditLog": "Audit Log",
1616
"xcoms": "XComs"
1717
},
18-
"bundleVersion": "Bundle Version",
1918
"dag_one": "Dag",
2019
"dag_other": "Dags",
2120
"dagDetails": {
22-
"bundleName": "Bundle Name",
2321
"catchup": "Catchup",
2422
"concurrency": "Concurrency",
2523
"dagRunTimeout": "Dag Run Timeout",
@@ -39,8 +37,7 @@
3937
"owner": "Owner",
4038
"params": "Params",
4139
"schedule": "Schedule",
42-
"tags": "Tags",
43-
"timezone": "Timezone"
40+
"tags": "Tags"
4441
},
4542
"dagId": "Dag ID",
4643
"dagRun": {
@@ -193,7 +190,7 @@
193190
"lastHour": "Last Hour",
194191
"pastWeek": "Past Week"
195192
},
196-
"timezone": "timezone",
193+
"timezone": "Timezone",
197194
"timezoneModal": {
198195
"current-timezone": "Current time in",
199196
"placeholder": "Select a timezone",

airflow-core/src/airflow/ui/src/i18n/locales/en/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@
8787
"toggleCardView": "Show card view",
8888
"toggleTableView": "Show table view",
8989
"triggerDag": {
90+
"button": "Trigger",
9091
"loading": "Loading DAG information...",
9192
"loadingFailed": "Failed to load DAG information. Please try again.",
9293
"runIdHelp": "Optional - will be generated if not provided",
9394
"selectDescription": "Trigger a single run of this Dag",
9495
"selectLabel": "Single Run",
9596
"title": "Trigger Dag",
96-
"trigger": "Trigger",
9797
"unpause": "Unpause {{dagDisplayName}} on trigger"
9898
},
9999
"versionDetails": {

airflow-core/src/airflow/ui/src/i18n/locales/en/dags.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
"delete": {
55
"button": "Delete Dag",
66
"warning": "This will remove all metadata related to the Dag, including Runs and Tasks."
7-
},
8-
"trigger": {
9-
"button": "Trigger",
10-
"triggerDag": "Trigger Dag"
117
}
128
},
139
"filters": {

airflow-core/src/airflow/ui/src/i18n/locales/he/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"githubRepo": "GitHub Repo",
2323
"restApiReference": "REST API תיעוד"
2424
},
25+
"duration": "משך זמן",
2526
"language": {
2627
"chinese": "סינית מסורתית",
2728
"english": "אנגלית",
@@ -67,7 +68,6 @@
6768
"taskInstance_one": "משימה בודדת",
6869
"taskInstance_other": "משימה אחרת",
6970
"timeRange": {
70-
"duration": "משך זמן",
7171
"last12Hours": "12 השעות האחרונות",
7272
"last24Hours": "24 השעות האחרונות",
7373
"lastHour": "השעה האחרונה",

airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"githubRepo": "GitHub 저장소",
2323
"restApiReference": "REST API 참조"
2424
},
25+
"duration": "지속 시간",
2526
"logout": "로그아웃",
2627
"nav": {
2728
"admin": "관리자",
@@ -62,7 +63,6 @@
6263
"taskInstance_one": "작업 인스턴스",
6364
"taskInstance_other": "작업 인스턴스들",
6465
"timeRange": {
65-
"duration": "지속 시간",
6666
"last12Hours": "지난 12 시간",
6767
"last24Hours": "지난 24 시간",
6868
"lastHour": "지난 1시간",

airflow-core/src/airflow/ui/src/i18n/locales/nl/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"githubRepo": "GitHub Repo",
2323
"restApiReference": "REST API referentie"
2424
},
25+
"duration": "Duur",
2526
"logout": "Uitloggen",
2627
"nav": {
2728
"admin": "Beheer",
@@ -61,7 +62,6 @@
6162
"taskInstance_one": "Task Instance",
6263
"taskInstance_other": "Task Instances",
6364
"timeRange": {
64-
"duration": "Duur",
6565
"last12Hours": "Laatste 12 uur",
6666
"last24Hours": "Laatste 24 uur",
6767
"lastHour": "Laatste uur",

airflow-core/src/airflow/ui/src/i18n/locales/pl/common.json

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,35 @@
1717
},
1818
"dag_one": "Dag",
1919
"dag_other": "Dagi",
20+
"dagDetails": {
21+
"catchup": "Nadrabianie zaległości",
22+
"concurrency": "Współbieżność",
23+
"dagRunTimeout": "Limit czasu wykonania Daga",
24+
"defaultArgs": "Domyślne argumenty",
25+
"description": "Opis",
26+
"documentation": "Dokumentacja Daga",
27+
"fileLocation": "Lokalizacja pliku",
28+
"hasTaskConcurrencyLimits": "Posiada ograniczenia współbieżności zadań",
29+
"lastExpired": "Ostatnio wygasły",
30+
"lastParsed": "Ostatnia analiza",
31+
"latestDagVersion": "Najnowsza wersja Daga",
32+
"latestRun": "Ostatnie wykonanie",
33+
"maxActiveRuns": "Maksymalna liczba aktywnych wykonań",
34+
"maxActiveTasks": "Maksymalna liczba aktywnych zadań",
35+
"maxConsecutiveFailedDagRuns": "Maksymalna liczba kolejnych nieudanych wykonań Daga",
36+
"nextRun": "Następne Wykonanie Daga",
37+
"owner": "Właściciel",
38+
"params": "Parametry",
39+
"schedule": "Harmonogram",
40+
"tags": "Etykiety"
41+
},
42+
"dagId": "Identyfikator Daga",
43+
"dagRun": {
44+
"conf": "Konfiguracja",
45+
"dagVersions": "Wersje Daga",
46+
"runAfter": "Wykonaj po",
47+
"runType": "Typ wykonania"
48+
},
2049
"dagRun_one": "Wykonanie Daga",
2150
"dagRun_other": "Wykonania Dagów",
2251
"dagWarnings": "Ostrzeżenia/Błędy Daga",
@@ -28,10 +57,7 @@
2857
"githubRepo": "Repozytorium GitHub",
2958
"restApiReference": "Dokuentacja REST API"
3059
},
31-
"duration": {
32-
"label": "Czas trwania",
33-
"seconds": "{{count}}s"
34-
},
60+
"duration": "Czas trwania",
3561
"endDate": "Data zakończenia",
3662
"expression": {
3763
"all": "Wszystkie",
@@ -62,6 +88,12 @@
6288
"security": "Bezpieczeństwo"
6389
},
6490
"noItemsFound": "Nie znaleziono modelu {{modelName}}",
91+
"note": {
92+
"add": "Dodać notatkę",
93+
"dagRun": "Notatki wykonania Daga",
94+
"label": "Notatka",
95+
"placeholder": "Dodaj notatkę..."
96+
},
6597
"operator": "Operator",
6698
"pools": {
6799
"deferred": "Odłożone",
@@ -79,6 +111,7 @@
79111
"manual": "Ręcznie",
80112
"scheduled": "Według harmonogramu"
81113
},
114+
"seconds": "{{count}}s",
82115
"security": {
83116
"actions": "Akcje",
84117
"permissions": "Uprawnienia",
@@ -110,7 +143,6 @@
110143
"table": {
111144
"completedAt": "Zakończono o",
112145
"createdAt": "Utworzono o",
113-
"duration": "Czas trwania",
114146
"filterByTag": "Filtruj Dagi według tagu",
115147
"filterColumns": "Filtruj kolumny tabeli",
116148
"filterReset_one": "Resetuj filtr",
@@ -128,10 +160,15 @@
128160
},
129161
"task_one": "Zadanie",
130162
"task_other": "Zadania",
163+
"taskId": "Identifikator Zadania",
164+
"taskInstance": {
165+
"dagVersion": "Wersja Daga",
166+
"operator": "Operator",
167+
"pool": "Pula"
168+
},
131169
"taskInstance_one": "Instancja Zadania",
132170
"taskInstance_other": "Instancje Zadań",
133171
"timeRange": {
134-
"duration": "Czas trwania",
135172
"last12Hours": "Ostatnie 12 godzin",
136173
"last24Hours": "Ostatnie 24 godziny",
137174
"lastHour": "Ostatnia godzina",

airflow-core/src/airflow/ui/src/i18n/locales/pl/components.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@
8080
"line": "linia"
8181
},
8282
"reparseDag": "Ponowne parsowanie Daga",
83-
"searchDags": {
84-
"button": "Szukaj Daga",
85-
"hotkey": "+K",
86-
"placeholder": "Szukaj Daga"
87-
},
8883
"sortedAscending": "posortowane rosnąco",
8984
"sortedDescending": "posortowane malejąco",
9085
"sortedUnsorted": "nieposortowane",
@@ -94,10 +89,6 @@
9489
"triggerDag": {
9590
"loading": "Ładowanie informacji o Dagach...",
9691
"loadingFailed": "Nie udało się załadować informacji o Dagach. Spróbuj ponownie.",
97-
"logicalDate": "Data logiczna",
98-
"notes": "Notatki wykonania Daga",
99-
"notesPlaceholder": "Kliknij, aby dodać notatkę",
100-
"runId": "Identyfikator wykonania",
10192
"runIdHelp": "Opcjonalne - zostanie wygenerowane, jeśli nie podano",
10293
"selectDescription": "Wyzwól pojedyncze wykonanie tego Daga",
10394
"selectLabel": "Pojedyncze wykonanie",

airflow-core/src/airflow/ui/src/i18n/locales/pl/dag.json

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,9 @@
22
"allRuns": "Wszystkie wykonania",
33
"code": {
44
"bundleUrl": "Adres URL paczki Dagów",
5-
"bundleVersion": "Wersja paczki Dagów:",
65
"noCode": "Nie znaleziono kodu",
76
"parsedAt": "Przeanalizowano o:"
87
},
9-
"details": {
10-
"fields": {
11-
"bundleVersion": "Wersja paczki Dagów",
12-
"catchup": "Nadrabianie zaległości",
13-
"concurrency": "Współbieżność",
14-
"dagId": "Identyfikator Daga",
15-
"dagRunTimeout": "Limit czasu wykonania Daga",
16-
"defaultArgs": "Domyślne argumenty",
17-
"description": "Opis",
18-
"endDate": "Data zakończenia",
19-
"fileLocation": "Lokalizacja pliku",
20-
"hasTaskConcurrencyLimits": "Posiada ograniczenia współbieżności zadań",
21-
"lastExpired": "Ostatnio wygasły",
22-
"lastParsed": "Ostatnia analiza",
23-
"latestDagVersion": "Najnowsza wersja Daga",
24-
"maxActiveRuns": "Maksymalna liczba aktywnych wykonań",
25-
"maxActiveTasks": "Maksymalna liczba aktywnych zadań",
26-
"maxConsecutiveFailedDagRuns": "Maksymalna liczba kolejnych nieudanych wykonań Daga",
27-
"params": "Parametry",
28-
"startDate": "Data rozpoczęcia",
29-
"timezone": "Strefa czasowa"
30-
}
31-
},
328
"grid": {
339
"buttons": {
3410
"resetToLatest": "Przywróć do najnowszego",
@@ -38,17 +14,6 @@
3814
"header": {
3915
"buttons": {
4016
"dagDocs": "Dokumentacja Daga"
41-
},
42-
"modals": {
43-
"docTitle": "Dokumentacja Daga"
44-
},
45-
"stats": {
46-
"latestDagVersion": "Najnowsza wersja Daga",
47-
"latestRun": "Ostatnie wykonanie",
48-
"nextRun": "Następne wykonanie",
49-
"owner": "Właściciel",
50-
"schedule": "Harmonogram",
51-
"tags": "Etykiety"
5217
}
5318
},
5419
"overview": {

0 commit comments

Comments
 (0)