1👍
✅
The following code works for me:
// settings.py
ugettext = lambda s:s
LANGUAGES = (
('de', ugettext('German')),
('en', ugettext('English')),
)
// template
{% load i18n %}
{% get_available_languages as LANGUAGES %}
{% for LANGUAGE in LANGUAGES %}
<p>{{ LANGUAGE.0 }} - {{ LANGUAGE.1 }}</p>
{% endfor %}
👤BFil
Source:stackexchange.com