summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-11-08 15:16:39 +0900
committerGitHub <noreply@github.com>2018-11-08 15:16:39 +0900
commitf052d8912b324a02c55100d89409c7e29c670f8e (patch)
tree7020b853b218b0463cc07ead1fbc7e093ce239ad /webpack.config.ts
parentvia の表示を改善 (#3161) (diff)
downloadsharkey-f052d8912b324a02c55100d89409c7e29c670f8e.tar.gz
sharkey-f052d8912b324a02c55100d89409c7e29c670f8e.tar.bz2
sharkey-f052d8912b324a02c55100d89409c7e29c670f8e.zip
wip: フォロー/フォロワーページ (#3157)
フォロー/フォロワーページ
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index 03ceeaa51c..37faec0069 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -66,6 +66,7 @@ const consts = {
_CODENAME_: codename,
_LANG_: '%lang%',
_LANGS_: Object.keys(locales).map(l => [l, locales[l].meta.lang]),
+ _LOCALE_: '%locale%',
_ENV_: process.env.NODE_ENV
};
@@ -100,6 +101,7 @@ const plugins = [
src = src.replace(i18nReplacer.pattern, i18nReplacer.replacement);
src = src.replace('%lang%', lang);
+ src = src.replace('"%locale%"', JSON.stringify(locales[lang]));
fs.writeFileSync(`${__dirname}/built/client/assets/${file}.${version}.${lang}.js`, src, 'utf-8');
});