Tweak the package.json require statement
This commit is contained in:
parent
8d1baca60e
commit
dff443287c
1 changed files with 1 additions and 6 deletions
|
@ -33,12 +33,7 @@ function allLangs() {
|
|||
}
|
||||
|
||||
function prodLangs() {
|
||||
// eslint-disable-next-line security/detect-non-literal-require
|
||||
return require(path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
'package.json'
|
||||
)).availableLanguages.join(',');
|
||||
return require('../package.json').availableLanguages.join(',');
|
||||
}
|
||||
|
||||
const availableLanguages = conf.l10n_dev ? allLangs() : prodLangs();
|
||||
|
|
Loading…
Reference in a new issue