locales-message
The library export message excel to json file.
Installation
Using npm:
$ npm i --save locales-message
Usage
// in gen-message.js file
const localesMess = require("locales-message");
/**
* @param {string} sheetId: sheet id of excel google doc (1NEo3yrsoR7zCDcrchb1fdrzXtxphRu2KuDOpwkLKofk)
* @param {string} range: range cell in sheet excel (A2:E)
* @param {Array} jsonFiles: json files array (["en", "vi", "ja", "sp"])
* @param {string} pathFolder: path folder to store json message file (/locales)
**/
localesMess.genMessage(sheetId, range, jsonFiles, pathFolder);
And run:
$ node gen-message