X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcommon%2Fhtml-tags.tsx;h=0e6cb2d03ad381528ed3f78447e0c0bc18d2b1bf;hb=6c6ddd5b5112afcab1641d49b2462083142bf265;hp=f32b0fc048a04687102fc740f08912c7fb0701c3;hpb=9c37cea106571a492e0b951fa66a182395053b67;p=lemmy-ui.git
diff --git a/src/shared/components/common/html-tags.tsx b/src/shared/components/common/html-tags.tsx
index f32b0fc..0e6cb2d 100644
--- a/src/shared/components/common/html-tags.tsx
+++ b/src/shared/components/common/html-tags.tsx
@@ -2,8 +2,7 @@ import { htmlToText } from "html-to-text";
import { Component } from "inferno";
import { Helmet } from "inferno-helmet";
import { httpExternalPath } from "../../env";
-import { i18n } from "../../i18next";
-import { md } from "../../utils";
+import { getLanguages, md } from "../../utils";
interface HtmlTagsProps {
title: string;
@@ -18,10 +17,11 @@ export class HtmlTags extends Component {
const url = httpExternalPath(this.props.path);
const desc = this.props.description;
const image = this.props.image;
+ const lang = getLanguages()[0];
return (
-
+
{["title", "og:title", "twitter:title"].map(t => (