mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Reduce binary size vs locale, update to CLDR v36.1
Test building with `go build -ldflags="-s -w"` Hugo 0.86.2: 46MB Before this commit: 77MB After this commit: 54MB Fixes #8839 Fixes #8841
This commit is contained in:
parent
9a7383caf3
commit
3a96655592
10 changed files with 28 additions and 17 deletions
|
@ -126,5 +126,14 @@ NumFmt: -98,765.43
|
|||
`,
|
||||
)
|
||||
|
||||
b.AssertFileContent("public/nn/index.html", "FormatNumber: 512,50\nFormatPercent: 512,50\u00a0%\nFormatCurrency: 512,50\u00a0USD\nFormatAccounting: 512,50\u00a0kr")
|
||||
b.AssertFileContent("public/nn/index.html", `
|
||||
FormatNumber: 512,50
|
||||
FormatPercent: 512,50 %
|
||||
FormatCurrency: 512,50 USD
|
||||
FormatAccounting: 512,50 kr
|
||||
FormatNumberCustom: 12,345.68
|
||||
|
||||
# We renamed this to FormatNumberCustom in 0.87.0.
|
||||
NumFmt: -98,765.43
|
||||
`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue