I want to translate a part of the JS in Django.
I've try the command python manage.py makemessages -d djangojs
but it take only file in TEMPLATE_DIRS
in the settings.py
I've try to set a JS in a template directory, and it work perfectly.
I've the djangojs.po and i can generate the .mo when i compile.
So the question is : How make message in static file?
I've found the same problem Here and Here but no one answer who keep a good architecture.
Please, save me!
My architecture:
- myapp
- locale
- static
- myapp
- js
- try.js
- js
- myapp
- template
- myapp
- try.html
- myapp
- views.py
- urls.py
- [...]
PS: Sorry for my english, i'm not native ;)