import { Component, InfernoNode, linkEvent } from "inferno";
import { T } from "inferno-i18next-dess";
import { PostReportView, PostView, ResolvePostReport } from "lemmy-js-client";
-import { i18n } from "../../i18next";
+import { I18NextService } from "../../services";
import { Icon, Spinner } from "../common/icon";
import { PersonListing } from "../person/person-listing";
import { PostListing } from "./post-listing";
const r = this.props.report;
const resolver = r.resolver;
const post = r.post;
- const tippyContent = i18n.t(
+ const tippyContent = I18NextService.i18n.t(
r.post_report.resolved ? "unresolve_report" : "resolve_report"
);
onTransferCommunity={() => {}}
/>
<div>
- {i18n.t("reporter")}: <PersonListing person={r.creator} />
+ {I18NextService.i18n.t("reporter")}:{" "}
+ <PersonListing person={r.creator} />
</div>
<div>
- {i18n.t("reason")}: {r.post_report.reason}
+ {I18NextService.i18n.t("reason")}: {r.post_report.reason}
</div>
{resolver && (
<div>