Skip to content

Commit 8934ad2

Browse files
committed
When scanning locales, skip __pycache__
1 parent e80d605 commit 8934ad2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cms/locale/locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def get_translations() -> dict[str, Translation]:
285285
try:
286286
locale_pkg = importlib.resources.files("cms.locale")
287287
for lang_dir in locale_pkg.iterdir():
288-
if lang_dir.is_dir():
288+
if lang_dir.is_dir() and not lang_dir.name.startswith('_'):
289289
lang_code = lang_dir.name
290290
try:
291291
mofile_path = lang_dir / "LC_MESSAGES" / "cms.mo"

0 commit comments

Comments
 (0)