mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure get-first-preferred-lang-code.js matches locale codes from local directory names and chrome extension api.
This commit is contained in:
parent
69778416ca
commit
5aff114001
@ -2,7 +2,7 @@ const extension = require('extensionizer')
|
||||
const promisify = require('pify')
|
||||
const allLocales = require('../../_locales/index.json')
|
||||
|
||||
const existingLocaleCodes = allLocales.map(locale => locale.code)
|
||||
const existingLocaleCodes = allLocales.map(locale => locale.code.replace('_', '-'))
|
||||
|
||||
async function getFirstPreferredLangCode () {
|
||||
const userPreferredLocaleCodes = await promisify(
|
||||
|
Loading…
Reference in New Issue
Block a user