diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-02 17:24:04 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-02 20:40:32 +0300 |
commit | 3a96655592d0b0db4126f20ca717d553dda9c4ed (patch) | |
tree | 659ab65dda84c17f3406e33a294aa0ac3d325e1e /hugolib | |
parent | 9a7383caf3945b9b11db2b108003f87e2e8b6a3a (diff) |
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
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/language_test.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hugolib/language_test.go b/hugolib/language_test.go index 1de422620..74f80a29d 100644 --- a/hugolib/language_test.go +++ b/hugolib/language_test.go @@ -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 +`) } |