JS Translation
This commit is contained in:
parent
76b9f58f68
commit
ccbf1b7d36
6 changed files with 98 additions and 4 deletions
|
|
@ -132,6 +132,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
|
||||
<script src="{% static "lang-select.js" %}"></script>
|
||||
<script src="{% static "bootstrap5/js/bootstrap.bundle.min.js" %}"></script>
|
||||
<script src="{% url 'javascript-catalog' %}"></script>
|
||||
{% block extrajs %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ from django.conf import settings
|
|||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path, re_path
|
||||
from django.views.i18n import JavaScriptCatalog
|
||||
|
||||
from .views import IndexView, MediaAccess
|
||||
|
||||
|
|
@ -20,6 +21,7 @@ urlpatterns = [
|
|||
path("", include("photologue.urls", namespace="photologue")),
|
||||
path("accounts/", include("allauth.urls")),
|
||||
path("i18n/", include("django.conf.urls.i18n")),
|
||||
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
|
||||
path("admin/doc/", include("django.contrib.admindocs.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue