mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
* angular 18 upgrade * wip * wip * remove @types/glob, fix jest version, use standalone: false * clean up * npm ci
16 lines
406 B
TypeScript
16 lines
406 B
TypeScript
import { Pipe, PipeTransform } from "@angular/core";
|
|
|
|
import { I18nService } from "@/jslib/common/src/abstractions/i18n.service";
|
|
|
|
@Pipe({
|
|
name: "i18n",
|
|
standalone: false,
|
|
})
|
|
export class I18nPipe implements PipeTransform {
|
|
constructor(private i18nService: I18nService) {}
|
|
|
|
transform(id: string, p1?: string, p2?: string, p3?: string): string {
|
|
return this.i18nService.t(id, p1, p2, p3);
|
|
}
|
|
}
|