hugo/0030-nicksnyder-go-i18n.patch

51 lines
2.8 KiB
Diff
Raw Normal View History

diff -u --recursive hugo-0.98.0-vanilla/go.mod hugo-0.98.0/go.mod
--- hugo-0.98.0-vanilla/go.mod 2022-04-28 05:23:30.000000000 -0500
+++ hugo-0.98.0/go.mod 2022-06-09 18:33:06.660140035 -0500
@@ -26,7 +26,7 @@
github.com/ghodss/yaml v1.0.0
github.com/gobuffalo/flect v0.2.5
github.com/gobwas/glob v0.2.3
- github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
+ github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
github.com/gohugoio/locales v0.14.0
github.com/gohugoio/localescompressed v1.0.1
github.com/gohugoio/testmodBuilder/mods v0.0.0-20190520184928-c56af20f2e95
diff -u --recursive hugo-0.98.0-vanilla/go.sum hugo-0.98.0/go.sum
--- hugo-0.98.0-vanilla/go.sum 2022-04-28 05:23:30.000000000 -0500
+++ hugo-0.98.0/go.sum 2022-06-09 18:33:23.678116377 -0500
@@ -328,8 +328,8 @@
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
-github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
-github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
github.com/gohugoio/locales v0.14.0 h1:Q0gpsZwfv7ATHMbcTNepFd59H7GoykzWJIxi113XGDc=
github.com/gohugoio/locales v0.14.0/go.mod h1:ip8cCAv/cnmVLzzXtiTpPwgJ4xhKZranqNqtoIu0b/4=
github.com/gohugoio/localescompressed v1.0.1 h1:KTYMi8fCWYLswFyJAeOtuk/EkXR/KPTHHNN9OS+RTxo=
diff -u --recursive hugo-0.98.0-vanilla/langs/i18n/i18n.go hugo-0.98.0/langs/i18n/i18n.go
--- hugo-0.98.0-vanilla/langs/i18n/i18n.go 2022-04-28 05:23:30.000000000 -0500
+++ hugo-0.98.0/langs/i18n/i18n.go 2022-06-09 18:34:19.650038594 -0500
@@ -25,7 +25,7 @@
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/helpers"
- "github.com/gohugoio/go-i18n/v2/i18n"
+ "github.com/nicksnyder/go-i18n/v2/i18n"
)
type translateFunc func(translationID string, templateData any) string
diff -u --recursive hugo-0.98.0-vanilla/langs/i18n/translationProvider.go hugo-0.98.0/langs/i18n/translationProvider.go
--- hugo-0.98.0-vanilla/langs/i18n/translationProvider.go 2022-04-28 05:23:30.000000000 -0500
+++ hugo-0.98.0/langs/i18n/translationProvider.go 2022-06-09 18:34:33.721019076 -0500
@@ -23,7 +23,7 @@
"golang.org/x/text/language"
yaml "gopkg.in/yaml.v2"
- "github.com/gohugoio/go-i18n/v2/i18n"
+ "github.com/nicksnyder/go-i18n/v2/i18n"
"github.com/gohugoio/hugo/helpers"
toml "github.com/pelletier/go-toml/v2"