I'm trying to set up Internationalization of JavaScript code in my Django application.
My Django app has a locale
subdirectory with a properly generated djangojs.po
file. The package definition is as follows:
# urls.py
js_info_dict = {
'packages': ('my_project',),
}
./manage.py makemessages
worked well as the .po
file contains all the to-be-translated strings but no JavaScript string ever gets translated on the website and the catalog is always empty.