lang.FormatCurrency
Returns a currency representation of a number for the given currency and precision for the current language and region.
Syntax
lang.FormatCurrency PRECISION CURRENCY NUMBER
Returns
string
{{ 512.5032 | lang.FormatCurrency 2 "USD" }} → $512.50日期、货币、数字和百分比的本地化由 gohugoio/locales 包执行。当前站点的语言标签必须与列出的语言区域之一匹配。