{% load i18n %}

<li>
    <form action="{% url 'set_language' %}" method="post" class="d-inline">{% csrf_token %}
        <input name="next" type="hidden" value="{{ next_url }}">
        <button name="language" value="en" class="dropdown-item {% if LANGUAGE_CODE == 'en' %}active bg-light-subtle{% endif %}" type="submit">
            <span class="me-2">🇺🇸</span> English
        </button>
    </form>
</li>
<li>
    <form action="{% url 'set_language' %}" method="post" class="d-inline">{% csrf_token %}
        <input name="next" type="hidden" value="{{ next_url }}">
        <button name="language" value="ar" class="dropdown-item {% if LANGUAGE_CODE == 'ar' %}active bg-light-subtle{% endif %}" type="submit">
            <span class="me-2">🇸🇦</span> العربية
        </button>
    </form>
</li>