Skip to content

Javascript Support? #498

Open
Open
@chrisspen

Description

Is there any way to use localflavor's translations from Javascript?

If I setup the jsi18n include, per the docs like:

urlpatterns += i18n_patterns(
    path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"),
)

and then include it in my base template like:

<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>

none of localflavor's translations are included in the autogenerated i18n Javascript include.

This is intentional or am I not using the correct URL pattern?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions