How to use localization package python in Django project?

0 like 0 dislike
21 views
Good day!
In your Django project set up localization, which is working fine. There are also I have written a Python package utils helper functions, it has the local folder with the translations strings 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 added in INSTALLED_APPS.

The question is how to teach Django to use the localization of this package? suppose there is a function which gives a text message _("Hello!"), Django will look for the translation according to its algorithm and will not pick up transfers from other imported package.

similar question found here, but no answer.
https://stackoverflow.com/questions/44218123/djang...
by | 21 views

1 Answer

0 like 0 dislike
by
110,608 questions
257,186 answers
0 comments
28,868 users