mtong-tools
Advanced tools
+3
-3
@@ -16,3 +16,3 @@ const {error} = require('../utils') | ||
| if(!file) { | ||
| file = jsonData.lang.path | ||
| file = path.join(cwd, jsonData.lang.path) | ||
| } | ||
@@ -23,3 +23,3 @@ const outPath = Path.join(cwd, jsonData.lang.outPath || 'lang') | ||
| if(file) { | ||
| const sheets = xlsx.parse(path.join(cwd, file)) | ||
| const sheets = xlsx.parse(file) | ||
| const sheet = sheets[0].data | ||
@@ -54,3 +54,3 @@ const data = {}, keys = sheet[0].map(item => item.toLocaleLowerCase()); | ||
| } | ||
| console.log(`多语言生成成功:${chalk.yellow(outPath)}`) | ||
| console.log(`多语言生成成功:${chalk.blue(file)}-${chalk.yellow(outPath)}`) | ||
| process.exit(0) | ||
@@ -57,0 +57,0 @@ } catch (e) { |
+1
-1
| const en = { | ||
| "message": { | ||
| "collectenergon_event0": 111 | ||
| "collectenergon_event0": "The Energy container (box) and rewards are the major parts of the page.\nUpon entering the homepage, players will get the initial Energy. Players will be guided to use Energy to draw rewards.\nPlayers have to complete some tasks to draw better rewards, including sharing, inviting MLBB in-game friends to join the event, watching promos, playing matches, etc.. Players have to log in to access the event rewards and learn more information through the website. Players will be eventually guided to MLBB." | ||
| } | ||
@@ -5,0 +5,0 @@ } |
+1
-1
| { | ||
| "name": "mtong-tools", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "mt cli", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
30690
1.73%216
0.47%