regenerate_i18n: Run yarn i18n in all repos

This commit is contained in:
su-ex 2021-07-07 18:06:57 +02:00
parent 817bdaf65b
commit be3bb16e06
No known key found for this signature in database
GPG Key ID: E9E9F6644110943E

View File

@ -6,6 +6,8 @@ i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
i18n_path="src/i18n/strings"
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
yarn=yarnpkg
add_upstream() {
if git remote | grep -q upstream; then
echo "Remote named upstream already exists!"
@ -72,6 +74,8 @@ revert_i18n_changes() {
git checkout upstream/master -- "$i18n_path"
$yarn i18n
if [[ "$skip_commit" != [Yy]* ]]; then
git commit -m "Automatic i18n reversion" || true
fi