import { Component } from "inferno";
-import { i18n } from "../../../shared/i18next";
+import { I18NextService } from "../../services";
export interface IPromptProps {
when: boolean;
}
this.unblock = this.context.router.history.block(tx => {
- if (window.confirm(i18n.t("block_leaving"))) {
+ if (window.confirm(I18NextService.i18n.t("block_leaving") ?? undefined)) {
this.unblock();
tx.retry();
}