langs/i18n: Fix for bare TOML keys
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 8 Oct 2020 07:37:40 +0000 (09:37 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 8 Oct 2020 12:20:18 +0000 (14:20 +0200)
commitfc6abc39c75c152780151c35bc95b12bee01b09c
tree591579c5872888acc6341aa706f8f69e8ff3837f
parent18ed22be5c79a3a9bb8d3f8de30888817e751ee1
langs/i18n: Fix for bare TOML keys

Hugo 0.76.0 updated go-i18n from v1 to v2. This allowed us to set the TOML unmarshaler to use, so we set the one we use in other places in Hugo.

But that does not support dotted bare keys, which caused some breakage in the wild.

This commit fixes that by:

* Using go-toml for language files
* Updating go-toml to the latest version
go.mod
go.sum
langs/i18n/i18n_test.go
langs/i18n/translationProvider.go