Install and commit translations in packages
(specifically canvas-rce)
closes MAT-393
flag=none
Test Plan
- Check out commit 111b6aa
(this commit has translations which are not synced to canvas-rce)
- Manually run `yarn wsrun --exclude-missing installTranslations`
- Manually run `yarn wsrun --exclude-missing commitTranslations`
- Observe that a patchset was created in Gerrit
Make sure to abandon the patchset
Change-Id: I33654c064ff8a22b5d78588d9946e94bb5460d18
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/280766
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jon Scheiding <jon.scheiding@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
This commit is contained in:
parent
9926bca745
commit
ef7ed59301
|
@ -35,6 +35,8 @@ yarn split
|
|||
yarn lint
|
||||
popd
|
||||
|
||||
yarn wsrun --exclude-missing installTranslations
|
||||
|
||||
git config --global user.name "Jenkins"
|
||||
git config --global user.email "svc.cloudjenkins@instructure.com"
|
||||
|
||||
|
@ -46,3 +48,5 @@ git checkout -B sync-translations-tmp && \
|
|||
git commit -m "[i18n] Update package translations" && \
|
||||
git push origin sync-translations-tmp:refs/for/master%submit,l=Verified+1 && \
|
||||
git checkout "$CURRENT_BRANCH"
|
||||
|
||||
yarn wsrun --exclude-missing commitTranslations
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
"demo:build": "webpack -c ./webpack.demo.config.js",
|
||||
"demo:dev": "yarn demo:clean && mkdir -p ./github-pages/dist && cp ./github-pages/index.html ./github-pages/dist && webpack -c ./webpack.dev.config.js",
|
||||
"installTranslations": "scripts/installTranslations.js",
|
||||
"commitTranslations": "scripts/commitTranslations.sh",
|
||||
"build:all": "scripts/build.js",
|
||||
"build:canvas": "scripts/build-canvas",
|
||||
"build:watch": "rm -rf es && ./node_modules/.bin/babel --out-dir es src --watch --verbose",
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
git checkout -B sync-translations-rce && \
|
||||
git add -A . && \
|
||||
git commit -m "[i18n] Update RCE translations.
|
||||
After submitting, make sure to publish a new version of canvas-rce to NPM." && \
|
||||
git push origin sync-translations-rce:refs/for/master%t=learning-materials,l=Verified+1 && \
|
||||
git checkout $CURRENT_BRANCH
|
Loading…
Reference in New Issue