Skip to content

Commit

Permalink
expose lookupLocale. fixes #9651
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Sep 18, 2019
1 parent cd9f8fd commit 34db89b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/devtools-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -55,6 +55,7 @@ if (typeof module !== 'undefined' && module.exports) {
runLighthouseInWorker,
listenForStatus,
registerLocaleData,
lookupLocale
};
}

Expand All @@ -67,4 +68,6 @@ if (typeof self !== 'undefined') {
self.listenForStatus = listenForStatus;
// @ts-ignore
self.registerLocaleData = registerLocaleData;
// @ts-ignore
self.lookupLocale = lookupLocale;
}

0 comments on commit 34db89b

Please sign in to comment.