Skip to content

Commit

Permalink
Reduce false positive
Browse files Browse the repository at this point in the history
Avoid extraction fake translation of empty string
  • Loading branch information
NicolasGrosjean committed Apr 16, 2021
1 parent 01b8220 commit 030258f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extract_existing_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def extract_translation_from_yml_file(source_loc_file, dest_loc_file, extracted_
source_texts, _ = file_to_keys_and_values(source_loc_file)
dest_texts, _ = file_to_keys_and_values(dest_loc_file)
for source_key in source_texts.keys():
if source_key in dest_texts.keys():
if source_key in dest_texts.keys() and source_texts[source_key]['value'] != '':
extracted_translation[source_texts[source_key]['value']] = dest_texts[source_key]['value']


Expand Down

0 comments on commit 030258f

Please sign in to comment.