I have some problems using the command django-admin makemessages -l es
I’m running it but the locale repertory still empty and and there is not .po files
generated on my locale repertory. and after running the command I get this message processing locale es
I add this following code on my setting.py file:
LOCALE_PATHS = [
os.path.join(BASE_DIR, 'locale')
]
And:
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'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',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
I have gettext
installed and I have created a repertory named locale
on root of the project, I don’t realy get the problem