@npm.piece/locale-downloader
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

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)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @npm.piece/locale-downloader

Weekly Downloads

7

Version

1.0.12

License

ISC

Unpacked Size

123 kB

Total Files

41

Last publish

Collaborators

  • npm.piece