mtong-tools
Advanced tools
+4
-3
@@ -32,3 +32,3 @@ const {error} = require('../utils') | ||
| const enumKey = key.toLocaleLowerCase() | ||
| const enumKey = key.toLocaleUpperCase() | ||
| enumMap[enumKey] = key | ||
@@ -63,4 +63,5 @@ } | ||
| str += `}` | ||
| const file = Path.join(outPath, `index.${suffix}`) | ||
| fs.outputFileSync(file, str) | ||
| const fileEnmu = Path.join(outPath, `index.${suffix}`) | ||
| fs.outputFileSync(fileEnmu, str) | ||
| } | ||
@@ -67,0 +68,0 @@ console.log(`多语言生成成功:${chalk.blue(file)}-${chalk.yellow(outPath)}`) |
+2
-2
| { | ||
| "name": "mtong-tools", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "mt cli", | ||
@@ -31,3 +31,3 @@ "bin": { | ||
| "lang": { | ||
| "path": "test/lang.xls", | ||
| "path": "test/lang.xlsx", | ||
| "outPath": "test/lang", | ||
@@ -34,0 +34,0 @@ "suffix": "ts" |
15808
0.06%