in src/wagtail_localize_smartling/utils.py [0:0]
def compute_content_hash(pofile: "POFile") -> str:
"""
Generates a hash from a generated PO file. We use this to reliably
check the translation source content before creating a Smartling Job
"""
strings = []
for entry in pofile:
strings.append(f"{entry.msgctxt}: {entry.msgid}")
return hashlib.sha256("".join(strings).encode()).hexdigest()