Requires {% load i18n %}
Add {% load i18n %} near the top of any template that
uses |language_name_local. Without it Django does not
know the name and raises TemplateSyntaxError.
The name of the language as its own speakers write it — which is what belongs in a language switcher, since a reader who cannot read the current language cannot read “French” either.
Template
{% load i18n %}
{{ "fr"|language_name_local }}
Result
français
