mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-04-01 21:44:28 +02:00
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_path="src/i18n/strings"
|
||||||
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
|
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
|
||||||
|
|
||||||
|
yarn=yarnpkg
|
||||||
|
|
||||||
add_upstream() {
|
add_upstream() {
|
||||||
if git remote | grep -q upstream; then
|
if git remote | grep -q upstream; then
|
||||||
echo "Remote named upstream already exists!"
|
echo "Remote named upstream already exists!"
|
||||||
@ -72,6 +74,8 @@ revert_i18n_changes() {
|
|||||||
|
|
||||||
git checkout upstream/master -- "$i18n_path"
|
git checkout upstream/master -- "$i18n_path"
|
||||||
|
|
||||||
|
$yarn i18n
|
||||||
|
|
||||||
if [[ "$skip_commit" != [Yy]* ]]; then
|
if [[ "$skip_commit" != [Yy]* ]]; then
|
||||||
git commit -m "Automatic i18n reversion" || true
|
git commit -m "Automatic i18n reversion" || true
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user