feat: enable translations
This commit is contained in:
parent
94482f1696
commit
e98db55a16
2 changed files with 21 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls.i18n import i18n_patterns
|
||||
from django.urls import include, path
|
||||
from django.contrib import admin
|
||||
from django.views.generic.base import TemplateView
|
||||
|
@ -25,6 +26,13 @@ urlpatterns = [
|
|||
path('newsletter/thanks', newsletter_views.thanks, name='thanks')
|
||||
]
|
||||
|
||||
# Translatable URLs
|
||||
# These will be available under a language code prefix. For example /en/search/
|
||||
urlpatterns += i18n_patterns(
|
||||
path("", include(wagtail_urls)),
|
||||
prefix_default_language=False,
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue