✌️
This commit is contained in:
parent
d3b3a7fc4e
commit
a53746e9d0
4 changed files with 12 additions and 9 deletions
|
@ -42,7 +42,7 @@ const langs = Object.keys(locales);
|
|||
|
||||
const entries = process.env.NODE_ENV == 'production'
|
||||
? langs.map(l => [l, false]).concat(langs.map(l => [l, true]))
|
||||
: [['ja', false]];
|
||||
: langs.map(l => [l, false]);
|
||||
|
||||
module.exports = entries.map(x => {
|
||||
const [lang, isProduction] = x;
|
||||
|
@ -144,7 +144,8 @@ module.exports = entries.map(x => {
|
|||
query: {
|
||||
search: i18nReplacer.pattern.toString(),
|
||||
replace: 'i18nReplacement',
|
||||
i18n: true
|
||||
i18n: true,
|
||||
lang
|
||||
}
|
||||
}, {
|
||||
loader: 'replace',
|
||||
|
@ -216,7 +217,8 @@ module.exports = entries.map(x => {
|
|||
query: {
|
||||
search: i18nReplacer.pattern.toString(),
|
||||
replace: 'i18nReplacement',
|
||||
i18n: true
|
||||
i18n: true,
|
||||
lang
|
||||
}
|
||||
}, {
|
||||
loader: 'replace',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue