diff --git a/src/app/shared/browse-by/browse-by.component.html b/src/app/shared/browse-by/browse-by.component.html
index f73fdb3bbd..a6198d7678 100644
--- a/src/app/shared/browse-by/browse-by.component.html
+++ b/src/app/shared/browse-by/browse-by.component.html
@@ -35,7 +35,7 @@
diff --git a/src/app/shared/browse-by/browse-by.component.ts b/src/app/shared/browse-by/browse-by.component.ts
index de8dffcadf..49b2c8d5c6 100644
--- a/src/app/shared/browse-by/browse-by.component.ts
+++ b/src/app/shared/browse-by/browse-by.component.ts
@@ -12,6 +12,8 @@ import { ViewMode } from '../../core/shared/view-mode.model';
import { RouteService } from '../../core/services/route.service';
import { map } from 'rxjs/operators';
import { hasValue } from '../empty.util';
+import { Location } from '@angular/common';
+import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'ds-browse-by',
@@ -114,7 +116,8 @@ export class BrowseByComponent implements OnInit {
public constructor(private injector: Injector,
protected paginationService: PaginationService,
- private routeService: RouteService
+ private routeService: RouteService,
+ protected translate: TranslateService
) {
}
@@ -171,7 +174,10 @@ export class BrowseByComponent implements OnInit {
this.shouldDisplayResetButton$ = observableCombineLatest([startsWith$, value$]).pipe(
map(([startsWith, value]) => hasValue(startsWith) || hasValue(value))
);
+ }
+ getTranslation(key: string): Observable {
+ return this.translate.instant(key);
}
}