]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/post/metadata-card.tsx
Fix I18 next circular reference
[lemmy-ui.git] / src / shared / components / post / metadata-card.tsx
index 16415d2dd78ceef885483a6393c0df5e6d8e7dd8..62b6b0fc40a17adeb709bbd8b85eee76190d0a3b 100644 (file)
@@ -2,7 +2,7 @@ import { Component, linkEvent } from "inferno";
 import { Post } from "lemmy-js-client";
 import * as sanitizeHtml from "sanitize-html";
 import { relTags } from "../../config";
-import { i18n } from "../../i18next";
+import { I18NextService } from "../../services";
 import { Icon } from "../common/icon";
 
 interface MetadataCardProps {
@@ -66,7 +66,7 @@ export class MetadataCard extends Component<
                       className="mt-2 btn btn-secondary text-monospace"
                       onClick={linkEvent(this, this.handleIframeExpand)}
                     >
-                      {i18n.t("expand_here")}
+                      {I18NextService.i18n.t("expand_here")}
                     </button>
                   )}
                 </div>