dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.35k stars 1.07k forks source link

[BUG] Setting a language code other than English does not translate the site #791

Open maiocesco opened 1 year ago

maiocesco commented 1 year ago

I installed the theme and changed the language code and language name in the config.toml file to translate the contents into Italian.

languageCode = "it"
languageName = "Italiano"

However, the content remains in English. Even with other language codes the problem persists.

anntsai2356 commented 1 year ago

Try add defaultContentLanguage = "it" into config. I found the same problem, then solved after add it.

thomas-louvigne commented 1 year ago

it solves the problem, but i think we could change the documentation.