build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -5,12 +5,10 @@ import { TranslateService } from '@ngx-translate/core';
|
||||
name: 'translateKey'
|
||||
})
|
||||
export class TranslatePipe implements PipeTransform {
|
||||
|
||||
constructor(private translateService: TranslateService) { }
|
||||
constructor(private translateService: TranslateService) {}
|
||||
|
||||
transform(attributeValue: any, group: string, prefix: string = 'labels'): string {
|
||||
const translationKey = `${prefix}.${group}.${attributeValue}`;
|
||||
return this.translateService.instant(translationKey);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user