https://github.com/danmindru/gsheets-i18n-loader
Webpack loader that grabs Google spreadsheets data as JSON (simple CMS for i18n string management)
https://github.com/danmindru/gsheets-i18n-loader
Last synced: about 1 year ago
JSON representation
Webpack loader that grabs Google spreadsheets data as JSON (simple CMS for i18n string management)
- Host: GitHub
- URL: https://github.com/danmindru/gsheets-i18n-loader
- Owner: danmindru
- Created: 2016-09-13T13:00:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T10:45:33.000Z (over 7 years ago)
- Last Synced: 2025-05-07T11:46:13.214Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gsheets-i18n-loader
Webpack loader that grabs Google spreadsheets data as JSON (simple CMS for i18n string management)
### Demo
`node demo`
Check output in `demo/output/bundle.js`
### Testing
`npm run test`
`npm run test:watch`
### Usage
1. Create a Google Spreadsheet like [this one](https://docs.google.com/spreadsheets/d/151DOW0-9Dt_24FNe3536SSotvNAKyQI6bOsznIyd-V0/edit?usp=sharing) `*`
2. Require a file `some-file.gsheets` (plain text) that contains your google sheet id `**` (see [demo](demo)).
-------------------------
> `*` The spreadsheet should have the following format:
| key |en| de | jp |
|-|-|-|-|
| TEST |Testosterone |Testosteron |テストステロン|
|QUOTE | Q'uo"t |Q'uo"t" |Q'u'o"t|
> `**` Don't know how to get the id? Check [this](https://developers.google.com/sheets/api/guides/concepts#spreadsheet_id) out.