다국어1 [다국어 처리]다국어 처리를 위한 루틴화 - 2 다국어 처리를 하면서 다른 프로젝트도 처리해야 하면서 경로가 동일하길래..그냥 외부 명령어를 추가해서 경로까지 처리하기로 했다. 더보기더보기onst fs = require('fs');const path = require('path');const { argv } = require('node:process');// 외부 명령어에 대한 key에 대한 값const langKey = { key1: "val1", key2: "val2"};// 프로젝트명 가져오기const getProject = () => { const cmd = argv[2] || "jui"; if (!Object.prototype.hasOwnProperty.call(langKey, cmd)) { console.l.. 2024. 12. 30. 이전 1 다음