From 34db89b640eb1aedcf49c14be608a596823c097b Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Wed, 18 Sep 2019 13:08:25 -0700 Subject: [PATCH] expose lookupLocale. fixes #9651 --- clients/devtools-entry.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clients/devtools-entry.js b/clients/devtools-entry.js index 60f3d9a50950..2e15abd4050c 100644 --- a/clients/devtools-entry.js +++ b/clients/devtools-entry.js @@ -8,7 +8,7 @@ const lighthouse = require('../lighthouse-core/index.js'); const RawProtocol = require('../lighthouse-core/gather/connections/raw.js'); const log = require('lighthouse-logger'); -const {registerLocaleData} = require('../lighthouse-core/lib/i18n/i18n.js'); +const {registerLocaleData, lookupLocale} = require('../lighthouse-core/lib/i18n/i18n.js'); /** @typedef {import('../lighthouse-core/gather/connections/connection.js')} Connection */ @@ -55,6 +55,7 @@ if (typeof module !== 'undefined' && module.exports) { runLighthouseInWorker, listenForStatus, registerLocaleData, + lookupLocale }; } @@ -67,4 +68,6 @@ if (typeof self !== 'undefined') { self.listenForStatus = listenForStatus; // @ts-ignore self.registerLocaleData = registerLocaleData; + // @ts-ignore + self.lookupLocale = lookupLocale; }