Adding custom language to django
I have translated my website into 24 languages of the European Union. These include the "Malti" language, which is not listed in the default supported languages django.
I would like to know if there is a way to add a custom language to django so that it can work with the native i18n url function.
Thank!
+2
source to share
1 answer
-
I found a solution, you need to manually add a folder to / django / conf / locale / with the required language extension. In fact, you can just copy the past en (english) folder and name it after the missing language (in my case mt).
-
In this folder, you can also edit the formats.py file to localize dates, numbers, etc.
-
Reload django and your language will be supported.
+4
source to share