tpl/lang: document delimiter option for FormatNumberCustom

Closes gohugoio/hugoDocs#1760
This commit is contained in:
Joe Mooring
2023-03-20 09:39:33 -07:00
committed by Bjørn Erik Pedersen
parent 86b2a27438
commit 1155bbca9d
2 changed files with 5 additions and 4 deletions

View File

@@ -72,6 +72,7 @@ func init() {
{`{{ lang.FormatNumberCustom 2 12345.6789 "- , ." }}`, `12.345,68`},
{`{{ lang.FormatNumberCustom 6 -12345.6789 "- ." }}`, `-12345.678900`},
{`{{ lang.FormatNumberCustom 0 -12345.6789 "- . ," }}`, `-12,346`},
{`{{ lang.FormatNumberCustom 0 -12345.6789 "-|.| " "|" }}`, `-12 346`},
{`{{ -98765.4321 | lang.FormatNumberCustom 2 }}`, `-98,765.43`},
},
)