module documentation

Undocumented

Variable register Undocumented
Class ​Localize​Node Undocumented
Function localize Force a value to be rendered as a localized value, regardless of the value of settings.USE_L10N.
Function localize​_tag Force or prevents localization of values, regardless of the value of settings.USE_L10N.
Function unlocalize Force a value to be rendered as a non-localized value, regardless of the value of settings.USE_L10N.
register =

Undocumented

@register.filter(is_safe=False)
def localize(value):
Force a value to be rendered as a localized value, regardless of the value of settings.USE_L10N.
@register.tag('localize')
def localize_tag(parser, token):

Force or prevents localization of values, regardless of the value of settings.USE_L10N.

Sample usage:

{% localize off %}
    var pi = {{ 3.1415 }};
{% endlocalize %}
@register.filter(is_safe=False)
def unlocalize(value):
Force a value to be rendered as a non-localized value, regardless of the value of settings.USE_L10N.