1.0.12 • Published 7 months ago

@npm.piece/locale-downloader v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Convert google sheet for i18n json file

Install

npm i @npm.piece/locale-downloader -D
yarn add @npm.piece/locale-downloader -D

Run command

npm.piece-locale-downloader

Copy google sheet

You can add more columns if you need

https://docs.google.com/spreadsheets/d/19fbHw20NyBTrllrqBJjFD99qGbXvUnurUOU0cNHMYsk/edit#gid=0

Create config file .config.locale.js near package.json:

const path = require('path')

const localesFolder = './src/features/services/localization/locales'

module.exports = {
  apiKey: '', // You can enable key https://console.cloud.google.com/apis/enableflow?apiid=sheets.googleapis.com
  googleSheetID: '19fbHw20NyBTrllrqBJjFD99qGbXvUnurUOU0cNHMYsk',
  sheetName: 'FirstPage',
  fileName: 'common.json',
  localesFolder: path.resolve(__dirname, localesFolder)
}
1.0.9

11 months ago

1.0.12

7 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago