Skip to content

Commit d0e68c4

Browse files
committed
Add print statements to script
1 parent 384ac8a commit d0e68c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/import-translations.py

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def get_yaml_string(raw_message_text):
5656

5757
anchor = match.group(1)
5858
expected_langs = get_expected_languages(messages[anchor])
59+
print('Expecting the following languages for anchor {anchor}: {expected_langs}')
5960
lang = None
6061

6162
index += 1
@@ -67,6 +68,7 @@ def get_yaml_string(raw_message_text):
6768
if lang == expected_langs[0]:
6869
expected_langs.pop(0)
6970
else:
71+
print(f'Expected an entry for language {expected_langs[0]}, found entry for language {lang}, inserting the expected language before it')
7072
# Insert the expected language above this one.
7173
match = re.search(r'(\s+)- lang:', lines[index])
7274
whitespace = match.group(1)

0 commit comments

Comments
 (0)