Skip to content

Commit f1a8138

Browse files
committed
add i18n to pagination
1 parent 2e68552 commit f1a8138

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pagination/pagination.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import {
77
} from "@angular/core";
88

99
import { range } from "../common/utils";
10-
11-
const EN = require("./../i18n/en.json");
10+
import { I18n } from "./../i18n/i18n.module";
1211

1312
/**
1413
* Use pagination when you have multiple pages of data to handle.
@@ -219,7 +218,7 @@ export class Pagination {
219218
itemsPerPageSelectId = `pagination-select-items-per-page-${Pagination.paginationCounter}`;
220219
currentPageSelectId = `pagination-select-current-page-${Pagination.paginationCounter}`;
221220

222-
constructor() {
221+
constructor(protected i18n: I18n) {
223222
Pagination.paginationCounter++;
224223
}
225224

0 commit comments

Comments
 (0)