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:
@@ -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}',
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user