[Client] set lang

This commit is contained in:
syuilo
2017-11-03 17:46:42 +09:00
parent 0ff0107cb8
commit 97f0b29d4a
4 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,8 @@ import * as webpack from 'webpack';
import version from '../../src/version';
const constants = require('../../src/const.json');
export default () => new webpack.DefinePlugin({
export default lang => new webpack.DefinePlugin({
VERSION: JSON.stringify(version),
LANG: JSON.stringify(lang),
THEME_COLOR: JSON.stringify(constants.themeColor)
});