Why is the translations data added here, rather than inside `_get_document_for_json`?