@register.simple_tag(name='<STR_LIT>', takes_context=True)<EOL>def djng_locale_script(context, default_language='<STR_LIT>'):
language = get_language_from_request(context['<STR_LIT>'])<EOL>if not language:<EOL><INDENT>language = default_language<EOL><DEDENT>return format_html('<STR_LIT>', language.lower())<EOL>
Returns a script tag for including the proper locale script in any HTML page.
This tag determines the current language with its locale.

Usage:
    <script src="{% static 'node_modules/angular-i18n/' %}{% djng_locale_script %}"></script>
or, if used with a default language:
    <script src="{% static 'node_modules/angular-i18n/' %}{% djng_locale_script 'de' %}"></script>