Skip to content

Commit d3f55c1

Browse files
committed
Some formatting of comments and spacing, to improve readability
1 parent 046edab commit d3f55c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/i18n-consistency-checker.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
The following files may have consistency issues with the English version. Please check and update the files.\\n\
3131
\\n\
3232
This issue is created when there is an update to content/en. It compares the git update history to let you know what updates are overdue. The issue should be closed when the update is complete.\\n"
33-
33+
34+
# Loop through all the files in the English directory
3435
for file in $(find patterns/2-structured -name '*.md'); do
3536
3637
# Get the translated file name and check if it exists
@@ -40,7 +41,7 @@ jobs:
4041
fi
4142
echo $file
4243
echo $i18n_filename
43-
# Loop through all the files in the English directory
44+
4445
# Get the last updated date of the original file and the translated file
4546
original_updated_at=$(date -d "$(git log -1 --format=%cd --date=iso $file)" +%s)
4647
i18n_content_updated_at=$(date -d "$(git log -1 --format=%cd --date=iso $i18n_filename)" +%s)
@@ -59,8 +60,8 @@ jobs:
5960
original_last_update_hash=$(git log -1 --format=%H $file)
6061
# Get the parent hash of the original last update hash
6162
parent_hash=$(git log -1 --format=%P $original_last_update_hash)
62-
# Get the diff between the original file and the translated file
63-
63+
64+
# Get the diff between the original file and the translated file
6465
result=$(echo "$(git diff ${parent_hash} HEAD $file)" | sed '1,4 s/^/# /')
6566
echo -e "$result"
6667

0 commit comments

Comments
 (0)