summaryrefslogtreecommitdiffhomepage
path: root/scripts/localization
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2025-11-20 11:29:17 +0100
committerEmīls <emils@mullvad.net>2025-11-20 11:29:17 +0100
commit0b7747f64607f8f65e862135acf58118c6b4d29b (patch)
tree45cd158f9a083e9fe8d210664ae6f21be8a83464 /scripts/localization
parent8beacc616749851c1e6d1fb18fc4a493f3c961f6 (diff)
parent15ba64661b9ebb172c5baa3710b21105e611b805 (diff)
downloadmullvadvpn-bug-bash-2025-11-20.tar.xz
mullvadvpn-bug-bash-2025-11-20.zip
Merge branch 'migrate-storekit2-calls-ios-1018' into bug-bash-2025-11-20bug-bash-2025-11-20
Diffstat (limited to 'scripts/localization')
-rwxr-xr-xscripts/localization13
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/localization b/scripts/localization
index 965ca0ff17..da05b455bc 100755
--- a/scripts/localization
+++ b/scripts/localization
@@ -8,6 +8,9 @@ cd "$SCRIPT_DIR"
# shellcheck disable=SC1091
source utils/log
+# shellcheck disable=SC1091
+source utils/localization_utils
+
function main {
case ${1:-""} in
prepare) prepare_localization_strings;;
@@ -50,12 +53,6 @@ function update_relay_locations_pot {
popd
}
-function commit_changes {
- if ! git diff-index --quiet HEAD --; then
- git commit -a -S -m "$1"
- fi
-}
-
function prepare_localization_strings {
sync_localizations
commit_changes "Update messages.pot"
@@ -64,10 +61,6 @@ function prepare_localization_strings {
commit_changes "Update relay-locations.pot"
}
-function ensure_crowdin_api_key {
- test ! -z "$CROWDIN_API_KEY"
-}
-
function upload_to_crowdin {
ensure_crowdin_api_key