def _serialize_tag_detail(tag):
    """Serializes a tag with all of its translations."""
    result = {
        'id': tag.id,
        'event_id': tag.event_id,
        'name': {
            t.language: t.name for t in tag.translations
        }
    }
    return result