{% load i18n %}
{% if sentiment %}
<span class="badge {{ badge_class }} badge-{{ size }}" title="Confidence: {{ sentiment.confidence|floatformat:2 }}">
    {{ icon }} 
    {% if sentiment.sentiment == 'positive' %}
        {% trans "Positive" %}
    {% elif sentiment.sentiment == 'negative' %}
        {% trans "Negative" %}
    {% else %}
        {% trans "Neutral" %}
    {% endif %}
</span>
{% endif %}
