My hugo language config is as follow.
[languages]
[languages.mo]
contentDir = ‘content/mo’
languageName = ‘mo’
languageCode = ‘mo’
weight = 1
[languages.mo.params]
basePath= ‘/mo’
My hugo language config is as follow.
[languages]
[languages.mo]
contentDir = ‘content/mo’
languageName = ‘mo’
languageCode = ‘mo’
weight = 1
[languages.mo.params]
basePath= ‘/mo’
To increase the chances of help, you should provide more detail. Best would beat look to your repository. And of course an expansible or “can’t read translation” actually means – do you see an error message, do you see a wrong translation, none at all…?
The language tag must conform to RFC 5646.
Use either “zh” or “zh-mo” and make sure the i18n file has the same name.
Thanks. Turned out mo doesn’t align with RFC 5646 standard. I’ve changed it to zh-mo and works fine.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.