Files
001code-html--cocos/scratch-l10n/scripts/update-translations.sh
刘宇飞 6e0a1fbcbb Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:37:45 +08:00

16 lines
452 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 "fix: pull new editor translations from Transifex"
git push https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master