Closed kostisbourlas closed 3 years ago
I came across the following block of code:
if (typeof gettext === 'undefined') { jQuery.getScript('{% url 'javascript-catalogue' %}'); }
which is located at stores/templates/stores/partials/extrascripts.html.
Is the url above related to Django translation url?
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
If yes, shouldn't it be {% url 'javascript-catalog' %};? if not, what is its purpose for?
{% url 'javascript-catalog' %};
Source: https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#module-django.views.i18n
It's not a typo, just British English spelling which has been used both in the template and in sandbox/urls.py. It is confusing though, so I'll change it to use the Django default shortly.
sandbox/urls.py
Issue Summary
I came across the following block of code:
which is located at stores/templates/stores/partials/extrascripts.html.
Is the url above related to Django translation url?
If yes, shouldn't it be
{% url 'javascript-catalog' %};
? if not, what is its purpose for?Source: https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#module-django.views.i18n