diff options
| -rw-r--r-- | gui/locales/es/messages-es.po (renamed from gui/locales/es-ES/messages-es-ES.po) | 0 | ||||
| -rw-r--r-- | gui/locales/sv/messages-sv.po (renamed from gui/locales/sv-SE/messages-sv-SE.po) | 0 | ||||
| -rwxr-xr-x | gui/scripts/crowdin.sh | 12 |
3 files changed, 12 insertions, 0 deletions
diff --git a/gui/locales/es-ES/messages-es-ES.po b/gui/locales/es/messages-es.po index f32b2ef4f7..f32b2ef4f7 100644 --- a/gui/locales/es-ES/messages-es-ES.po +++ b/gui/locales/es/messages-es.po diff --git a/gui/locales/sv-SE/messages-sv-SE.po b/gui/locales/sv/messages-sv.po index df4d5bdf11..df4d5bdf11 100644 --- a/gui/locales/sv-SE/messages-sv-SE.po +++ b/gui/locales/sv/messages-sv.po diff --git a/gui/scripts/crowdin.sh b/gui/scripts/crowdin.sh index 914007ac87..ce1bb75a42 100755 --- a/gui/scripts/crowdin.sh +++ b/gui/scripts/crowdin.sh @@ -34,6 +34,18 @@ function download_translations { unzip -o all.zip -d $LOCALE_DIR find $LOCALE_DIR -type d -exec chmod 755 {} \; find $LOCALE_DIR -type f -exec chmod 644 {} \; + + # Rename some of the locales to align with the locale codes expected by Electron + # [1] https://electronjs.org/docs/api/locales + # [2] https://support.crowdin.com/api/language-codes/ + rm -rf "$LOCALE_DIR/es" + mv "$LOCALE_DIR/es-ES" "$LOCALE_DIR/es" + mv "$LOCALE_DIR/es/messages-es-ES.po" "$LOCALE_DIR/es/messages-es.po" + + rm -rf "$LOCALE_DIR/sv" + mv "$LOCALE_DIR/sv-SE" "$LOCALE_DIR/sv" + mv "$LOCALE_DIR/sv/messages-sv-SE.po" "$LOCALE_DIR/sv/messages-sv.po" + rm all.zip } |
