diff --git a/tools/tex-to-svg.js b/tools/tex-to-svg.js index e682cd1d..f42936e0 100644 --- a/tools/tex-to-svg.js +++ b/tools/tex-to-svg.js @@ -67,7 +67,7 @@ var filedata = [ '\\usepackage{unicode-math}' ] -if (process.env.locale === 'zh-CN') { +if (process.env.LOCALE === 'zh-CN') { filedata = filedata.concat([ '\\usepackage{xeCJK}', '\\xeCJKsetup{CJKmath=true}', @@ -75,7 +75,7 @@ if (process.env.locale === 'zh-CN') { ]); } -if (process.env.locale === 'ja-JP') { +if (process.env.LOCALE === 'ja-JP') { filedata = filedata.concat([ '\\usepackage{xeCJK}', '\\xeCJKsetup{CJKmath=true}', diff --git a/webpack.config.js b/webpack.config.js index 2779db4f..d6a29485 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ var path = require('path'); var fs = require('fs'); const defaultLocale = "en-GB"; -var locale = process.env.locale || defaultLocale; +var locale = process.env.LOCALE || defaultLocale; console.log("Using locale: "+locale);