Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 847 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 847 Bytes

MultiLang-GSheetToJSON

Request from work.

Feature

Using Google Sheets to store multilingual data allows PMs, writers, and other relevant personnel to operate and use it more effectively.

Through this project, Google Sheets can be parsed into a JSON file that meets the project's requirements, enabling the use of i18n functionality.

Installation

npm install

Usage

  1. modify .env.example file to .env and add your google spread sheet id into the file

    ## https://docs.google.com/spreadsheets/d/<spreadsheetId>/edit#gid=<sheetId>
    SPREADSHEET_ID="your-id"
  2. run script

    node parse.js

Source File

My demo Google Sheet