Joe Mooring
bddcfd911c
deps: Update github.com/gohugoio/localescompressed v0.14.0 => v0.15.0
...
Fixes #9446
2022-02-19 11:34:00 +01:00
Bjørn Erik Pedersen
3a96655592
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
2021-08-02 19:40:32 +02:00
Bjørn Erik Pedersen
7907d24ba1
tpl/lang: Add new localized versions of lang.FormatNumber etc.
...
Fixes #8820
2021-07-29 16:40:06 +02:00
Sam Smith
3d9235e8fc
tpl: Fix bad rounding in NumFmt
...
strconv.FormatFloat doesn't round properly sometimes, this adds a
different method of rounding, fixes #7116
2020-06-02 17:20:36 +02:00
Bjørn Erik Pedersen
9e57182705
tests: Convert from testify to quicktest
2019-08-12 13:26:32 +02:00
Cameron Moore
ce264b936c
tpl: Add a delimiter parameter to lang.NumFmt
...
The original implementation of NumFmt did not take into account that the
options delimiter (a space) could be a valid option. Adding a delim
parameter seems like the simplest, safest, and most flexible way to
solve this oversight in a backwards-compatible way.
Fixes #5260
2018-10-02 17:41:48 +03:00
Bjørn Erik Pedersen
d8717cd4c7
all: Update import paths to gohugoio/hugo
2017-06-13 18:42:45 +02:00
Cameron Moore
93b3b13867
tpl/lang: Add NumFmt function
...
NumFmt formats a number with a given precision using the requested
decimal, grouping, and negative characters.
Fixes #1444
2017-05-18 09:49:20 +03:00