Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Support? #498

Open
chrisspen opened this issue Sep 26, 2023 · 0 comments
Open

Javascript Support? #498

chrisspen opened this issue Sep 26, 2023 · 0 comments

Comments

@chrisspen
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant