This is an internationalization helper that helps you convert the files you want to internationalize between Json and Excel.
npm install convert-excel-js -g
yarn global add convert-excel-js
Convert json to excel
excel [filePath] [fileName]
excel ./filename.json
# excel ./filename.json appText
Convert excel to json
json [filePath] [sheetName] [keyColumn] [valueColumn] [fileName]
json ./filename.xlsx Sheet A B
# json ./filename.xlsx Sheet A B fileName.js
If you expect the file name to record the time just insert _time_
'into the name for example:
Convert json to excel
excel [filePath] [fileName]
excel ./filename.json appText._time_.json
Convert excel to json
json [filePath] [sheetName] [keyColumn] [valueColumn] [fileName]
json ./filename.xlsx Sheet A B fileName._time_.js