From d3f388c2f81d05c29b7ba52cf6776bffc0611802 Mon Sep 17 00:00:00 2001 From: Dani Hodovic Date: Wed, 19 Jun 2024 20:07:31 -0300 Subject: [PATCH] docs: enable translations for sample deployment (#67) --- .../example/templates/example/base.html | 2 +- sample_deployment/sample_deployment/settings.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sample_deployment/sample_deployment/example/templates/example/base.html b/sample_deployment/sample_deployment/example/templates/example/base.html index 51f917b..cfe6ce4 100644 --- a/sample_deployment/sample_deployment/example/templates/example/base.html +++ b/sample_deployment/sample_deployment/example/templates/example/base.html @@ -1,6 +1,6 @@ {% load static tailwind_tags %} - + diff --git a/sample_deployment/sample_deployment/settings.py b/sample_deployment/sample_deployment/settings.py index 95f15c5..7c5b77f 100644 --- a/sample_deployment/sample_deployment/settings.py +++ b/sample_deployment/sample_deployment/settings.py @@ -67,6 +67,7 @@ "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "django_browser_reload.middleware.BrowserReloadMiddleware", + "django.middleware.locale.LocaleMiddleware", "allauth.account.middleware.AccountMiddleware", ] @@ -127,10 +128,17 @@ LANGUAGE_CODE = "en-us" -TIME_ZONE = "UTC" +LANGUAGES = ( + ("en", "English"), + ("fr", "French"), + ("es", "Spanish"), + ("pt-br", "Portuguese (Brazil)"), +) USE_I18N = True +TIME_ZONE = "UTC" + USE_TZ = True