django - how to make translation work?

前端 未结 9 1095
不知归路
不知归路 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:57

    I had the same issues, it seems that your locale path have to end with a slash :

    LOCALE_PATHS = (
        '/dir/to/my/locale/', 
    )
    

提交回复
热议问题