diff --git a/.github/workflows/i18n-consistency-checker.yaml b/.github/workflows/i18n-consistency-checker.yaml index 6b6f39438..d85d5cb55 100644 --- a/.github/workflows/i18n-consistency-checker.yaml +++ b/.github/workflows/i18n-consistency-checker.yaml @@ -29,9 +29,14 @@ jobs: # Loop through all files in the English directory for file in $(find patterns/{2-structured,3-validated} -name '*.md'); do echo "Original file: $file" - [[ $file =~ "3-validated" ]] && continue # if the file is under 3-validated, skip (one liner) - 2023/08/26 - [[ $file =~ "/templates" ]] && continue # if the file is under /templates, skip. consistency check does not work for that yet. - i18n_filename=$(echo "$file" | sed -E "s_patterns/(2-structured|3-validated)(/project-setup)?_translation/${{matrix.language}}/patterns_g") + #[[ $file =~ "3-validated" ]] && continue # if the file is under 3-validated, skip (one liner) - 2023/08/26 + #[[ $file =~ "/templates" ]] && continue # if the file is under /templates, skip. consistency check does not work for that yet. + + if [[ $file =~ "/templates" ]]; then + i18n_filename=$(echo "$file" | sed -E "s_patterns/(2-structured|3-validated)/templates_translation/${{matrix.language}}/templates") + else + i18n_filename=$(echo "$file" | sed -E "s_patterns/(2-structured|3-validated)_translation/${{matrix.language}}/patterns_g") + fi echo "Translation file: $i18n_filename" if [[ ! -e "$i18n_filename" ]]; then