File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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// 다국어 메시지
3230const messages = {
Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ console.log('- 배치 실행 파일 생성...');
8585
8686// run.bat (English version)
8787const runBatContent = `@echo off
88+ set LANGUAGE=en
8889
89- sql2excel-v${ version } .exe --lang=en
90+ sql2excel-v${ version } .exe
9091
9192pause
9293` ;
@@ -96,8 +97,9 @@ console.log(` ✅ run.bat 생성 완료 (English)`);
9697
9798// 실행하기.bat (Korean version) - 배치 파일에서는 영문만 사용
9899const runBatKrContent = `@echo off
100+ set LANGUAGE=kr
99101
100- sql2excel-v${ version } .exe --lang=kr
102+ sql2excel-v${ version } .exe
101103
102104pause
103105` ;
Original file line number Diff line number Diff 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
2627pause
Original file line number Diff line number Diff 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
2627pause
You can’t perform that action at this time.
0 commit comments