From 24d712e30e18683044fb20d0809e417b533b5907 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Tue, 17 Oct 2023 18:41:43 +0100 Subject: [PATCH] Exclude incomplete lang files from sort and check This will exempt them from the future pipeline tests --- .gitlab/scripts/lang_sort.sh | 4 ++-- app/translations/{fi_FI.json => fi_FI_incomplete.json} | 0 app/translations/{he_IL.json => he_IL_incomplete.json} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename app/translations/{fi_FI.json => fi_FI_incomplete.json} (100%) rename app/translations/{he_IL.json => he_IL_incomplete.json} (100%) diff --git a/.gitlab/scripts/lang_sort.sh b/.gitlab/scripts/lang_sort.sh index 7a80f7e1..4586c8e7 100644 --- a/.gitlab/scripts/lang_sort.sh +++ b/.gitlab/scripts/lang_sort.sh @@ -49,8 +49,8 @@ get_keys "${DIR}/en_EN.json" | sort > "${ref_keys}" # Iterate over each .json file in the directory for file in "${DIR}"/*.json; do - # Check if file is a regular file and not en_EN.json - if [[ -f "${file}" && "${file}" != "${DIR}/en_EN.json" ]]; then + # Check if file is a regular file and not en_EN.json, and does not contain "_incomplete" in its name + if [[ -f "${file}" && "${file}" != "${DIR}/en_EN.json" && ! "${file}" =~ _incomplete ]]; then # Get keys and subkeys from the current file current_keys=$(mktemp) diff --git a/app/translations/fi_FI.json b/app/translations/fi_FI_incomplete.json similarity index 100% rename from app/translations/fi_FI.json rename to app/translations/fi_FI_incomplete.json diff --git a/app/translations/he_IL.json b/app/translations/he_IL_incomplete.json similarity index 100% rename from app/translations/he_IL.json rename to app/translations/he_IL_incomplete.json