From 5abb9a3b3067a0bd60ed7a069bde851c4dbd0cf0 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 22 Apr 2023 15:08:21 +0200 Subject: [PATCH] Update settings for locale --- nummi/nummi/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nummi/nummi/settings.py b/nummi/nummi/settings.py index d1cd960..282d93c 100644 --- a/nummi/nummi/settings.py +++ b/nummi/nummi/settings.py @@ -63,6 +63,7 @@ INSTALLED_APPS = [ MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", + "django.middleware.locale.LocaleMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", @@ -118,9 +119,10 @@ AUTH_PASSWORD_VALIDATORS = [] LANGUAGE_CODE = "fr-fr" TIME_ZONE = CONFIG.get("time_zone", "CET") USE_I18N = True +USE_L10N = True USE_TZ = True LOCALE_PATHS = [ - "locale", + BASE_DIR.joinpath("locale"), ] # Static files (CSS, JavaScript, Images)