{% get_language_info %} Tag

looks up the details of one language.

Utility As Markdown

Argument(s)
for language_code as varname
Closing tag
Not required
Requires
{% load i18n %}

Documentation

Looks up a language by code and gives back its name, its local name, and whether it is right to left.

Template

{% load i18n %}
{% get_language_info for "fr" as lang %}
{{ lang.name_local }} ({{ lang.code }})

Result

français (fr)

More Utility Tags

All Utility Tags


Did we get something wrong? Is there a use case for the get_language_info tag that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on August 20, 2026