Webpack loader that grabs Google spreadsheets data as JSON (simple CMS for i18n string management)
node demo
Check output in demo/output/bundle.js
npm run test
npm run test:watch
-
Create a Google Spreadsheet like this one
*
-
Require a file
some-file.gsheets
(plain text) that contains your google sheet id**
(see 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 out.