I’m using Toml for a specific site’s config.
The site is in Chinese - Traditional (i.e. Taiwanese)
languageCode = "zh-cht"
defaultContentLanguage = "zh-cht"
[languages.zh-cht]
contentDir = "content/zh-cht"
languageName = "語言"
languagedirection = 'ltr'
weight = 20
The site is working just fine, except:
In front matter I have:
date_of_event: 2015-09-05
{{ .Params.date_of_event | time.Format ":date_long" }}
This works great, for the English site.
I assume it would localize for Chinese, but it doesn’t.
I believe it’s my config is incorrect, but for the life of me, I can’t understand what, when I work to “delve” into this, I believe I should be using “zh-Hant-TW” somehow but not sure how.
In my sites href lang settings (HTML output) it seems I should be using:
|Chinese (Traditional) (zh-CHT) |zh-CHT| - i.e. <html lang="zh-cht">
Except, I do see an option for:
|Chinese (Traditional) (zh-Hant) |zh-Hant|
Which I don’t totally understand the difference to be honest.
There’s a series of confusions I’m mid, but at the end of the day, how, with the above config do I localize a date with time.format?
Thank you for everyone’s time.