forked from github/schildichat-desktop
regenerate_i18n: Run yarn i18n in all repos
This commit is contained in:
parent
817bdaf65b
commit
be3bb16e06
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user