Please support lang-locale value for site language

Hello, I’m new user of micro.blog.

I’d like to let my site support my language(i.e. Traditional Chinese). In order to differ from Simplified Chinese, we usually use lang-locale value for i18n files.

  • Taiwan: zh-TW / zh-Hant-TW
  • Hongkong: zh-HK / zh-Hant-HK
  • China: zh-CN / zh-Hans-CN

I’ve contributed i18n file named as zh-TW.json for the theme I used.
However, I cannot set language value “zh-TW” with theme error.
I’m not sure is a problem on theme itself or Hugo or micro.blog, please help.

Hi and welcome to Micro.blog!

I’m curious if it makes a difference if you change the file name to zh-Hant-TW.json and set defaultContentLanguage to zh-Hant-TW.

However, same theme error here:
Theme error: site config value “zh-hant-tw” for defaultContentLanguage does not match any language definition

Okay, try setting it to zh-tw (all lower case).

It works ! Thanks a lot.