diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 2d66e5c6d..200449643 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -4853,6 +4853,34 @@ 63 + + queued + + src/app/components/manage/tasks/tasks.component.ts + 131 + + + + started + + src/app/components/manage/tasks/tasks.component.ts + 133 + + + + completed + + src/app/components/manage/tasks/tasks.component.ts + 135 + + + + failed + + src/app/components/manage/tasks/tasks.component.ts + 137 + + 404 Not Found diff --git a/src-ui/src/app/components/manage/tasks/tasks.component.html b/src-ui/src/app/components/manage/tasks/tasks.component.html index f1d728e72..f6a8b75c8 100644 --- a/src-ui/src/app/components/manage/tasks/tasks.component.html +++ b/src-ui/src/app/components/manage/tasks/tasks.component.html @@ -100,7 +100,7 @@
-
{tasks.length, plural, =1 {One {{this.activeTab}} task} other {{{tasks.length || 0}} total {{this.activeTab}} tasks}}
+
{tasks.length, plural, =1 {One {{this.activeTabLocalized}} task} other {{{tasks.length || 0}} total {{this.activeTabLocalized}} tasks}}
diff --git a/src-ui/src/app/components/manage/tasks/tasks.component.ts b/src-ui/src/app/components/manage/tasks/tasks.component.ts index 9e993de62..b4dcbcc21 100644 --- a/src-ui/src/app/components/manage/tasks/tasks.component.ts +++ b/src-ui/src/app/components/manage/tasks/tasks.component.ts @@ -124,4 +124,17 @@ export class TasksComponent duringTabChange(navID: number) { this.page = 1 } + + get activeTabLocalized(): string { + switch (this.activeTab) { + case 'queued': + return $localize`queued` + case 'started': + return $localize`started` + case 'completed': + return $localize`completed` + case 'failed': + return $localize`failed` + } + } }