mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 21:52:35 -05:00
Add bash script for committing sync updates
Also fix copy/paste typo in package.json
This commit is contained in:
parent
c286f62d69
commit
0f1dafef0e
2 changed files with 16 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
"browser": "./src/index.js",
|
"browser": "./src/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"build-i18n-src": "./scripts/build-i18n-src.js",
|
"build-i18n-src": "./scripts/build-i18n-src.js",
|
||||||
"sync-tx-src": "./scripts/build-i18n-src.js"
|
"sync-tx-src": "./scripts/sync_tx_src.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:data": "babel-node scripts/build-data",
|
"build:data": "babel-node scripts/build-data",
|
||||||
|
|
15
scripts/sync_tx.sh
Normal file
15
scripts/sync_tx.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# script for syncing translations from transifex and comitting the changes.
|
||||||
|
|
||||||
|
git checkout master
|
||||||
|
|
||||||
|
npm run sync:editor
|
||||||
|
|
||||||
|
npm run test
|
||||||
|
|
||||||
|
git add .
|
||||||
|
|
||||||
|
git commit -m "pull new editor translations from Transifex"
|
||||||
|
|
||||||
|
git push
|
Loading…
Reference in a new issue