From 4733a7940dea45d54d83e6c0072f0e7997097d02 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Mon, 5 Nov 2018 14:02:11 +0000 Subject: [PATCH] Merge pull request #1100 from sharelatex/as-html-lang-attr Add lang attribute to html tag GitOrigin-RevId: ddc22ae6e742d9b501bac8d3c35d6640a7635b92 --- services/web/app/views/layout.pug | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug index 27398e45db..d82d95df39 100644 --- a/services/web/app/views/layout.pug +++ b/services/web/app/views/layout.pug @@ -1,5 +1,9 @@ doctype html -html(itemscope, itemtype='http://schema.org/Product') +html( + lang=(currentLngCode || 'en'), + itemscope, + itemtype='http://schema.org/Product' +) - metadata = metadata || {} block vars