googledrive-i18n

1.2.9 • Public • Published

googledrive-i18n

Make i18n json file from your google drive folder

Requirements

  1. Google Account
  2. Google Sheet
  3. Google Service Account (with json file)
  4. node > 8

Install

npm i -g googledrive-i18n

or

npm i --save-dev googledrive-i18n

Usage

  1. Create the service account and Enable the APIs (google-sheet, google-drive), please check this article http://isd-soft.com/tech_blog/accessing-google-apis-using-service-account-node-js/
  2. Create a folder on your google drive and get the folder id (https://drive.google.com/drive/folders/?ths=true)
  3. Create a google-sheet file
  4. Copy i18n template into your sheet and fill your own data https://docs.google.com/spreadsheets/d/1iBbPHwa81ZzRbNX8GwcaNQz_gWz8iPE88kU1R8WsL5M/edit?usp=sharing
  5. Share your folder to your service account email (something like account-name@project-name.iam.gserviceaccount.com)
  6. Use cli
gi18n -f <google drive folder id> -k <service account json file path> -o <output path>
  1. Check out your output path and find the i18n json file

Package Sidebar

Install

npm i googledrive-i18n

Weekly Downloads

0

Version

1.2.9

License

MIT

Unpacked Size

11.1 kB

Total Files

5

Last publish

Collaborators

  • felixmeng