From a2c5f279087a94b064f852d826184070be75d9cd Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Tue, 7 Aug 2018 16:51:51 -0700 Subject: [PATCH] set lang attribute on HTML report --- lighthouse-core/report/html/report-template.html | 2 +- lighthouse-core/report/report-generator.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lighthouse-core/report/html/report-template.html b/lighthouse-core/report/html/report-template.html index 52373acd4f4e..7b89d3c27e4c 100644 --- a/lighthouse-core/report/html/report-template.html +++ b/lighthouse-core/report/html/report-template.html @@ -15,7 +15,7 @@ limitations under the License. --> - + diff --git a/lighthouse-core/report/report-generator.js b/lighthouse-core/report/report-generator.js index 384bc36b368c..d87e589f1920 100644 --- a/lighthouse-core/report/report-generator.js +++ b/lighthouse-core/report/report-generator.js @@ -40,6 +40,7 @@ class ReportGenerator { const sanitizedJavascript = htmlReportAssets.REPORT_JAVASCRIPT.replace(/<\//g, '\\u003c/'); return ReportGenerator.replaceStrings(htmlReportAssets.REPORT_TEMPLATE, [ + {search: '%%LIGHTHOUSE_LOCALE%%', replacement: lhr.configSettings.locale}, {search: '%%LIGHTHOUSE_JSON%%', replacement: sanitizedJson}, {search: '%%LIGHTHOUSE_JAVASCRIPT%%', replacement: sanitizedJavascript}, {search: '/*%%LIGHTHOUSE_CSS%%*/', replacement: htmlReportAssets.REPORT_CSS},