CreateCommunity as CreateCommunityI,
GetSiteResponse,
} from "lemmy-js-client";
-import { i18n } from "../../i18next";
-import { HttpService } from "../../services/HttpService";
+import { HttpService, I18NextService } from "../../services";
import { HtmlTags } from "../common/html-tags";
import { CommunityForm } from "./community-form";
}
get documentTitle(): string {
- return `${i18n.t("create_community")} - ${
+ return `${I18NextService.i18n.t("create_community")} - ${
this.state.siteRes.site_view.site.name
}`;
}
/>
<div className="row">
<div className="col-12 col-lg-6 offset-lg-3 mb-4">
- <h5>{i18n.t("create_community")}</h5>
+ <h5>{I18NextService.i18n.t("create_community")}</h5>
<CommunityForm
onUpsertCommunity={this.handleCommunityCreate}
enableNsfw={enableNsfw(this.state.siteRes)}