mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
18 lines
394 B
TypeScript
18 lines
394 B
TypeScript
|
import {
|
||
|
Pipe,
|
||
|
PipeTransform,
|
||
|
} from '@angular/core';
|
||
|
|
||
|
import { I18nService } from '../../abstractions/i18n.service';
|
||
|
|
||
|
@Pipe({
|
||
|
name: 'i18n',
|
||
|
})
|
||
|
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);
|
||
|
}
|
||
|
}
|