mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Better plural localization support
This commit is contained in:
parent
9819887668
commit
66b2d7d0f5
@ -130,7 +130,13 @@ export class RunnerJobListComponent extends RestTable <RunnerJob> implements OnI
|
||||
.subscribe({
|
||||
next: () => {
|
||||
this.reloadData()
|
||||
this.notifier.success($localize`Job(s) cancelled.`)
|
||||
|
||||
this.notifier.success(
|
||||
formatICU(
|
||||
$localize`{count, plural, =1 {Job cancelled} other {{count} jobs cancelled}}`,
|
||||
{ count: jobs.length }
|
||||
)
|
||||
)
|
||||
},
|
||||
|
||||
error: err => this.notifier.error(err.message)
|
||||
@ -151,7 +157,13 @@ export class RunnerJobListComponent extends RestTable <RunnerJob> implements OnI
|
||||
.subscribe({
|
||||
next: () => {
|
||||
this.reloadData()
|
||||
this.notifier.success($localize`Job(s) removed.`)
|
||||
|
||||
this.notifier.success(
|
||||
formatICU(
|
||||
$localize`{count, plural, =1 {Job removed} other {{count} jobs removed}}`,
|
||||
{ count: jobs.length }
|
||||
)
|
||||
)
|
||||
},
|
||||
|
||||
error: err => this.notifier.error(err.message)
|
||||
|
Loading…
Reference in New Issue
Block a user