mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fix pagination i18n setup (#2195)
This commit is contained in:
parent
734c1260ca
commit
f2db536148
@ -26,6 +26,7 @@ import {
|
|||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Pagination } from 'alfresco-js-api';
|
import { Pagination } from 'alfresco-js-api';
|
||||||
|
import { TranslationService } from './../../services/translation.service';
|
||||||
import { PaginationQueryParams } from './pagination-query-params.interface';
|
import { PaginationQueryParams } from './pagination-query-params.interface';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -73,6 +74,12 @@ export class PaginationComponent implements OnInit {
|
|||||||
@Output('prevPage')
|
@Output('prevPage')
|
||||||
onPrevPage: EventEmitter<Pagination> = new EventEmitter<Pagination>();
|
onPrevPage: EventEmitter<Pagination> = new EventEmitter<Pagination>();
|
||||||
|
|
||||||
|
constructor(translationService: TranslationService) {
|
||||||
|
if (translationService) {
|
||||||
|
translationService.addTranslationFolder('ng2-alfresco-core', 'assets/ng2-alfresco-core');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.pagination = {
|
this.pagination = {
|
||||||
skipCount: 0,
|
skipCount: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user