locales-message

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i locales-message

Weekly Downloads

38

Version

2.0.0

License

ISC

Unpacked Size

2.01 kB

Total Files

4

Last publish

Collaborators

  • anhbui