1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-01 06:20:52 +02:00

cross-platform environment casing

This commit is contained in:
Pomax
2017-03-21 11:32:42 -07:00
parent 77af5dd6ca
commit abad38ecd6
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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);