scratch-l10n/scripts/update-translations.sh
chrisgarrity 50761ad970 New scripts to support www in scratch-l10n
* tx-pull-www: pull www translations from transifex
* validate-www: check www for correct placeholders
* add commands to pull and validate www to package.json
* add validating www to the test step
* add pulling www to the update-translations script for the cron job
* changed .tx/config to match the new folder names `scratch-website.<resource-slug>`, and added missing folders. This isn’t needed for the scripts, but it’s useful if you need to pull the translation for a single language/resource
2019-02-12 10:50:43 +01:00

15 lines
447 B
Bash
Executable file

#!/bin/bash
# script for syncing translations from transifex and comitting the changes.
# exit script if any command returns a non-zero return code:
set -ev
npm run pull:editor
npm run pull:www
npm run test
# commit any updates and push. Build and release should happen on the push not here.
git add .
git commit -m "pull new editor translations from Transifex"
git push https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master