You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/internationalization.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ You can change the default language by using the standard Django `LANGUAGE_CODE`
17
17
18
18
LANGUAGE_CODE = "es-es"
19
19
20
-
You can turn on per-request language requests by adding `LocalMiddleware` to your `MIDDLEWARE_CLASSES` setting:
20
+
You can turn on per-request language requests by adding `LocalMiddleware` to your `MIDDLEWARE` setting:
21
21
22
-
MIDDLEWARE_CLASSES = [
22
+
MIDDLEWARE = [
23
23
...
24
24
'django.middleware.locale.LocaleMiddleware'
25
25
]
@@ -90,7 +90,7 @@ If you're only translating custom error messages that exist inside your project
90
90
91
91
## How the language is determined
92
92
93
-
If you want to allow per-request language preferences you'll need to include `django.middleware.locale.LocaleMiddleware` in your `MIDDLEWARE_CLASSES` setting.
93
+
If you want to allow per-request language preferences you'll need to include `django.middleware.locale.LocaleMiddleware` in your `MIDDLEWARE` setting.
94
94
95
95
You can find more information on how the language preference is determined in the [Django documentation][django-language-preference]. For reference, the method is:
0 commit comments