This commit is contained in:
syuilo 2018-04-15 06:16:50 +09:00
parent d3b3a7fc4e
commit a53746e9d0
4 changed files with 12 additions and 9 deletions

View file

@ -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',