1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00
Files
browser/libs/angular/src/pipes/pluralize.pipe.ts
Oscar Hinton 26fb7effd3 Remove standalone true from platform and UIF (#15032)
Remove standalone: true from every instance since it's the default as of Angular 19.
2025-06-02 20:03:04 +02:00

11 lines
275 B
TypeScript

import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: "pluralize",
})
export class PluralizePipe implements PipeTransform {
transform(count: number, singular: string, plural: string): string {
return `${count} ${count === 1 ? singular : plural}`;
}
}