With Hugo, I'm creating a blog in french. Currently all my date are displayed in english (february) but I want them to be displayed in french (février). How to set the language ?
My config.toml
looks like this:
baseURL = 'http://example.org/'
languageCode = 'fr-FR'
defaultContentLanguage = "fr"
defaultContentLang = "fr"
title = 'TITLE'
theme = "THEME"
I try to set languageCode
, defaultContentLanguage
and defaultContentLang
to fr
but with no success.
I don't need multi language support, I just only need french.
{{ time.Format "desired-format" "your-date" }}
. Also "dateFormat" is an alias of time.Format. gohugo.io/functions/dateformat . Alias documented here: github.com/gohugoio/hugo/blob/master/docs/content/en/functions/… – Anthraquinone