import { Component, linkEvent } from "inferno";
-import { i18n } from "../../i18next";
+import { I18NextService } from "../../services";
interface PaginatorProps {
page: number;
disabled={this.props.page == 1}
onClick={linkEvent(this, this.handlePrev)}
>
- {i18n.t("prev")}
+ {I18NextService.i18n.t("prev")}
</button>
<button
className="btn btn-secondary"
onClick={linkEvent(this, this.handleNext)}
>
- {i18n.t("next")}
+ {I18NextService.i18n.t("next")}
</button>
</div>
);