summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-15 06:16:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-15 06:16:50 +0900
commita53746e9d07a7089947480b1893eb829c0560a28 (patch)
treed73052a018c799ee8998c16f384b467492d25e00 /webpack
parentwip (diff)
downloadmisskey-a53746e9d07a7089947480b1893eb829c0560a28.tar.gz
misskey-a53746e9d07a7089947480b1893eb829c0560a28.tar.bz2
misskey-a53746e9d07a7089947480b1893eb829c0560a28.zip
:v:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/loaders/replace.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webpack/loaders/replace.js b/webpack/loaders/replace.js
index 9897fe37d5..0326dcdab3 100644
--- a/webpack/loaders/replace.js
+++ b/webpack/loaders/replace.js
@@ -11,7 +11,8 @@ module.exports = function(src) {
const g = search[search.length - 1] == 'g';
const file = this.resourcePath.replace(/\\/g, '/');
const replace = options.i18n ? global[options.replace].bind(null, {
- src: file
+ src: file,
+ lang: options.lang
}) : global[options.replace];
if (typeof search != 'string' || search.length == 0) console.error('invalid search');
if (typeof replace != 'function') console.error('invalid replacer:', replace, this.request);