Skip to content

Commit 6289ea2

Browse files
committed
Refactor keys to use react-i18next plural support.
1 parent 9a85c43 commit 6289ea2

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

airflow-core/src/airflow/ui/src/components/DagActions/inlineMessage.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ export const getInlineMessage = (isPendingDryRun: boolean, totalEntries: number,
2828
</Text>
2929
) : (
3030
<Text color="fg.success" fontSize="sm">
31-
{translate(totalEntries > 1 ? "backfill.affectedMultiple" : "backfill.affectedOne", {
32-
count: totalEntries,
33-
})}
31+
{translate("backfill.affected", { count: totalEntries })}
3432
</Text>
3533
);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"backfill": {
3-
"affectedMultiple": "{{count}} Läufe werden ausgelöst.",
3+
"affected_one": "1 Lauf wird ausgelöst.",
4+
"affected_other": "{{count}} Läufe werden ausgelöst.",
45
"affectedNone": "Keine Läufe entsprechend en Kriterien.",
5-
"affectedOne": "1 Lauf wird ausgelöst.",
66
"backwards": "Verarbeitung in Rückwärtiger Reihenfolge",
77
"dateRange": "Datumsbereich",
88
"dateRangeFrom": "Von",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"backfill": {
3-
"affectedMultiple": "{{count}} runs will be triggered.",
3+
"affected_one": "1 run will be triggered.",
4+
"affected_other": "{{count}} runs will be triggered.",
45
"affectedNone": "No runs matching selected criteria.",
5-
"affectedOne": "1 run will be triggered.",
66
"backwards": "Run Backwards",
77
"dateRange": "Date Range",
88
"dateRangeFrom": "From",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"backfill": {
3-
"affectedMultiple": "Zostanie wywołanych {{count}} wykonań.",
3+
"affected_one": "Zostanie wywołane 1 wykonanie.",
4+
"affected_other": "Zostanie wywołanych {{count}} wykonań.",
45
"affectedNone": "Brak wykonań spełniających wybrane kryteria.",
5-
"affectedOne": "Zostanie wywołane 1 wykonanie.",
66
"backwards": "Uruchom wstecz",
77
"dateRange": "Zakres dat",
88
"dateRangeFrom": "Od",

0 commit comments

Comments
 (0)