Skip to content

Commit 37d32ad

Browse files
committed
Unify multilingual attribute definitions using environment variables.
1 parent cd43759 commit 37d32ad

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

app.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ const colors = {
2323
white: '\x1b[37m'
2424
};
2525

26-
// 언어 설정 (명령줄 인수에서 가져오기)
27-
const args = process.argv.slice(2);
28-
const langArg = args.find(arg => arg.startsWith('--lang='));
29-
const LANGUAGE = langArg ? langArg.split('=')[1] : 'en';
26+
// 언어 설정 (환경 변수 우선, 기본값 영어)
27+
const LANGUAGE = process.env.LANGUAGE || 'en';
3028

3129
// 다국어 메시지
3230
const messages = {

create-release.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ console.log('- 배치 실행 파일 생성...');
8585

8686
// run.bat (English version)
8787
const runBatContent = `@echo off
88+
set LANGUAGE=en
8889
89-
sql2excel-v${version}.exe --lang=en
90+
sql2excel-v${version}.exe
9091
9192
pause
9293
`;
@@ -96,8 +97,9 @@ console.log(` ✅ run.bat 생성 완료 (English)`);
9697

9798
// 실행하기.bat (Korean version) - 배치 파일에서는 영문만 사용
9899
const runBatKrContent = `@echo off
100+
set LANGUAGE=kr
99101
100-
sql2excel-v${version}.exe --lang=kr
102+
sql2excel-v${version}.exe
101103
102104
pause
103105
`;

run.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if %errorlevel% neq 0 (
2121
)
2222

2323
:: Run application (English mode)
24-
node app.js --lang=en
24+
set LANGUAGE=en
25+
node app.js
2526

2627
pause

실행하기.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if %errorlevel% neq 0 (
2121
)
2222

2323
:: 프로그램 실행 (한글 모드)
24-
node app.js --lang=kr
24+
set LANGUAGE=kr
25+
node app.js
2526

2627
pause

0 commit comments

Comments
 (0)