I install django_celery_beat app in Django settings.py file
INSTALLED_APPS = [
...,
'django_celery_beat',
]
It has its own locale dir.
As I understand I need to add this path to LOCALE_PATHS in settings.py. How can I get it? Hardcoding is not an option, of cause.
So I found the following solutions that works:
import importlib
LOCALE_PATHS = [
...,
os.path.join(
os.path.dirname(importlib.util.find_spec('django_celery_beat').origin),
'locale/',
),
]