mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
docs: Regenerate docs helper
This commit is contained in:
parent
10287263f5
commit
42fbded105
1 changed files with 31 additions and 0 deletions
|
@ -869,6 +869,37 @@
|
|||
}
|
||||
},
|
||||
"lang": {
|
||||
"NumFmt": {
|
||||
"Description": "NumFmt formats a number with the given precision using the\nnegative, decimal, and grouping options. The `options`\nparameter is a string consisting of `\u003cnegative\u003e \u003cdecimal\u003e \u003cgrouping\u003e`. The\ndefault `options` value is `- . ,`.\n\nNote that numbers are rounded up at 5 or greater.\nSo, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`.",
|
||||
"Args": [
|
||||
"precision",
|
||||
"number",
|
||||
"options"
|
||||
],
|
||||
"Aliases": null,
|
||||
"Examples": [
|
||||
[
|
||||
"{{ lang.NumFmt 2 12345.6789 }}",
|
||||
"12,345.68"
|
||||
],
|
||||
[
|
||||
"{{ lang.NumFmt 2 12345.6789 \"- , .\" }}",
|
||||
"12.345,68"
|
||||
],
|
||||
[
|
||||
"{{ lang.NumFmt 6 -12345.6789 \"- .\" }}",
|
||||
"-12345.678900"
|
||||
],
|
||||
[
|
||||
"{{ lang.NumFmt 0 -12345.6789 \"- . ,\" }}",
|
||||
"-12,346"
|
||||
],
|
||||
[
|
||||
"{{ -98765.4321 | lang.NumFmt 2 }}",
|
||||
"-98,765.43"
|
||||
]
|
||||
]
|
||||
},
|
||||
"Translate": {
|
||||
"Description": "Translate ...",
|
||||
"Args": [
|
||||
|
|
Loading…
Reference in a new issue