mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2328] filtering support for facets and categories (#3293)
* filtering support for facets and categories * fix tests * update variable names
This commit is contained in:
committed by
Eugenio Romano
parent
440c666583
commit
7afcd24488
@@ -105,4 +105,10 @@ describe('TranslationService', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should return empty string for missing key when getting instant translations', () => {
|
||||
expect(translationService.instant(null)).toEqual('');
|
||||
expect(translationService.instant('')).toEqual('');
|
||||
expect(translationService.instant(undefined)).toEqual('');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -128,6 +128,6 @@ export class TranslationService {
|
||||
* @returns Translated text
|
||||
*/
|
||||
instant(key: string | Array<string>, interpolateParams?: Object): string | any {
|
||||
return this.translate.instant(key, interpolateParams);
|
||||
return key ? this.translate.instant(key, interpolateParams) : '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user