Hi,
I’d like to use the time.Format to display the localized date time, specifically in Chinese.
But I found that the translated date is converted only if the language is set to zh.
The config I’m using is like below:
[languages.cn]
languageName = 'Chinese'
weight = 20
contentDir = 'content/cn'
which use cn as Chinese and I put all Chinese posts under content/cn.
Then I tried to move all contents to content/zh and change the config to
[languages.zh]
languageName = 'Chinese'
weight = 20
contentDir = 'content/zh'
In this way, the date is indeed displayed in Chinese. But the url is also changed to <baseURL>/zh/<post-title>.
How to change the setting to keep the post url like <baseURL>/cn/<post-title>, but shows the date time in Chinese?
Thanks a lot.