Browse Source

Reuse existing translation of "of" in range label of paginator

pull/8449/head
Thomas Kaul 5 days ago
parent
commit
0fb0c58152
  1. 4
      apps/client/src/app/adapter/custom-paginator-intl.ts

4
apps/client/src/app/adapter/custom-paginator-intl.ts

@ -28,7 +28,9 @@ export class CustomPaginatorIntl extends MatPaginatorIntl {
range = `${this.formatNumber(startIndex + 1)} – ${this.formatNumber(endIndex)}`; range = `${this.formatNumber(startIndex + 1)} – ${this.formatNumber(endIndex)}`;
} }
return $localize`${range} of ${this.formatNumber(Math.max(length, 0))}`; const total = this.formatNumber(Math.max(length, 0));
return `${range} ${$localize`of`} ${total}`;
}; };
public setLocale(aLocale: string) { public setLocale(aLocale: string) {

Loading…
Cancel
Save