Answer the question
In order to leave comments, you need to log in
How to use python package localization in Django project?
Good afternoon!
In my django project I have set up localization which works fine. I also have a python package utils of auxiliary functions written by me, it has a local folder with line translations for this package, I use them in the Django project via import, install the package via pip. since this package is not a django app, I don't add it to INSTALLED_APPS.
The question is, how to teach jung to use the localization of this package? let's say there is a function that gives a text message _("Hi!!!"), django will search for translations according to its algorithm and will not pick up translations from a third-party imported package.
I found a similar question here, but no answer.
https://stackoverflow.com/questions/44218123/djang...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question