]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/common/html-tags.tsx
attempt to fix crazy merge fiasco
[lemmy-ui.git] / src / shared / components / common / html-tags.tsx
index 4c673d906645db0cd3d7ad711b6b28785c1ed72a..387cd041302ef55d08337b86acd3129f1359131f 100644 (file)
@@ -2,8 +2,8 @@ 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";
-
 interface HtmlTagsProps {
   title: string;
   path: string;
@@ -20,6 +20,8 @@ export class HtmlTags extends Component<HtmlTagsProps, any> {
 
     return (
       <Helmet title={this.props.title}>
+        <html lang={i18n.resolvedLanguage} />
+
         {["title", "og:title", "twitter:title"].map(t => (
           <meta key={t} property={t} content={this.props.title} />
         ))}