Add Custom Language For Localization In Django App
adding a custom language to django I checked this question and did all the steps mentioned in the accepted answer. After doing all when I go to /kjv/ then it redirects to /en/kjv/
Solution 1:
If anyone come to this place and facing similar issue then don't forget to update/add LOCALE_PATHS in settings.py
e.g
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
LOCALE_PATHS = (
os.path.join(PROJECT_PATH, '../locale'),
)
You can point to anywhere, given they exist and have valid locale structure.
Post a Comment for "Add Custom Language For Localization In Django App"