We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88fd3f2 + c138041 commit b35865cCopy full SHA for b35865c
1 file changed
projects/angular-l10n/src/lib/pipes/l10n-translate.pipe.ts
@@ -12,6 +12,9 @@ export class L10nTranslatePipe implements PipeTransform {
12
13
constructor(protected translation: L10nTranslationService) { }
14
15
+ public transform(key: null, language: string, params?: any): null;
16
+ public transform(key: "", language: string, params?: any): null;
17
+ public transform(key: string, language: string, params?: any): string;
18
public transform(key: any, language: string, params?: any): string | null {
19
if (key == null || key === '') return null;
20
0 commit comments