Back to Hugo

Locale

docs/content/en/_common/configuration/locale.md

0.162.11.0 KB
Original Source

locale : (string) The language tag as described in RFC 5646. This is the primary value used by the language.Translate function to select a translation table, and for localization of dates, currencies, numbers, and percentages, falling back to the language key in both cases.

Hugo also uses this value to populate:

Access this value from a template using the Language.Locale method on a Site or Page object.