Skip to content

Commit b8cf661

Browse files
committed
Simplified LOCALE_PATHS
1 parent 593c874 commit b8cf661

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

djangoproject/settings/common.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,10 @@
221221

222222
USE_I18N = True
223223

224-
LOCALE_PATHS = [
225-
# List apps first so their translations take precedence.
226-
# This list should match LOCALE_DIRS in update-translations.sh.
227-
str(BASE_DIR.joinpath(path))
228-
for path in ("dashboard/locale/", "docs/locale/", "locale/")
229-
]
224+
# Django discovers locale directories in the dashboard and docs apps
225+
# on its own, but the main project locale/ directory needs to be
226+
# explicitly listed here.
227+
LOCALE_PATHS = [str(BASE_DIR.joinpath("locale/"))]
230228

231229
USE_TZ = False
232230

0 commit comments

Comments
 (0)