django - how to make translation work?

前端 未结 9 1087
不知归路
不知归路 2020-12-13 04:00

I\'m trying to render a template in a different language using i18n. I did everything I could read about, from setting the language code, creating and compiling translation

9条回答
  •  离开以前
    2020-12-13 04:52

    Just add the paths of the locale files generated to the settings.py file like the following

    LOCALE_PATHS = ( "/xxx/xxx/Projects/xxx/sites/avb/locale/",)
    

提交回复
热议问题