[ADF-1999] i18n support for file size pipe (#2803)

* i18n support for fileSize pipe

* remove unused declaration

* update unit test
This commit is contained in:
Denys Vuika
2018-01-05 21:26:09 +00:00
committed by Eugenio Romano
parent f9fb7dc7dd
commit e98d904363
6 changed files with 55 additions and 7 deletions

View File

@@ -91,4 +91,8 @@ export class TranslationService {
get(key: string|Array<string>, interpolateParams?: Object): Observable<string|any> {
return this.translate.get(key, interpolateParams);
}
instant(key: string | Array<string>, interpolateParams?: Object): string | any {
return this.translate.instant(key, interpolateParams);
}
}