gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.63k stars 7.45k forks source link

Specify locale for {{ .Date.Format "Jan 2, 2006" }} #422

Closed alexkravets closed 9 years ago

alexkravets commented 10 years ago

Is there a way to specify locale for Format function so non-English locale to be used? Maybe languageCode in website config could be used for by default?

majava3000 commented 10 years ago

(Just starting with Hugo, so sorry for the lack of comprehension, considering using Hugo to drive a non-English site)

Maybe a better idea would be to specify the actual format to use in the global config? Now it's sprinkled around within themes and that would become an interesting issue if it would have to be changed.

bep commented 9 years ago

See http://gohugo.io/tutorials/create-a-multilingual-site/

This should cover this issue. i18n issues must be handled in a bigger picture than this, and I guess we are waiting for better support in Go stdlib etc.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.