From f2db536148bb81cc3a2e69ab4ee5467cd55ff523 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 10 Aug 2017 13:58:32 +0100 Subject: [PATCH] fix pagination i18n setup (#2195) --- .../src/components/pagination/pagination.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ng2-components/ng2-alfresco-core/src/components/pagination/pagination.component.ts b/ng2-components/ng2-alfresco-core/src/components/pagination/pagination.component.ts index c5e2eee8ab..34221332b4 100644 --- a/ng2-components/ng2-alfresco-core/src/components/pagination/pagination.component.ts +++ b/ng2-components/ng2-alfresco-core/src/components/pagination/pagination.component.ts @@ -26,6 +26,7 @@ import { } from '@angular/core'; import { Pagination } from 'alfresco-js-api'; +import { TranslationService } from './../../services/translation.service'; import { PaginationQueryParams } from './pagination-query-params.interface'; @Component({ @@ -73,6 +74,12 @@ export class PaginationComponent implements OnInit { @Output('prevPage') onPrevPage: EventEmitter = new EventEmitter(); + constructor(translationService: TranslationService) { + if (translationService) { + translationService.addTranslationFolder('ng2-alfresco-core', 'assets/ng2-alfresco-core'); + } + } + ngOnInit() { this.pagination = { skipCount: 0,