Fix Translation.from_hash and translation#to_hash