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)