From fa5b3986199fa59e2065301a9db1be3b057c190f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 4 Jun 2026 13:48:49 +0000 Subject: [PATCH] Migrate locales import from hebcal-go/locales to github.com/hebcal/locales Replace "github.com/hebcal/hebcal-go/locales" with the standalone "github.com/hebcal/locales" module (v0.9.0) in all 11 event.go files. The LookupTranslation API is identical; all tests pass. https://claude.ai/code/session_01ELzsWAJoRBQqWP6kbSMqt8 --- dafweekly/event.go | 2 +- dafyomi/event.go | 2 +- go.mod | 2 ++ go.sum | 4 ++++ mishnayomi/event.go | 2 +- nachyomi/event.go | 2 +- nine29/event.go | 2 +- perekyomi/event.go | 2 +- pirkeiavot/event.go | 2 +- psalms/event.go | 2 +- rambam/event.go | 2 +- tanakhyomi/event.go | 2 +- yerushalmi/event.go | 2 +- 13 files changed, 17 insertions(+), 11 deletions(-) diff --git a/dafweekly/event.go b/dafweekly/event.go index f71268d..9958b20 100644 --- a/dafweekly/event.go +++ b/dafweekly/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" "github.com/hebcal/learning/dafyomi" ) diff --git a/dafyomi/event.go b/dafyomi/event.go index 2abd724..18b2295 100644 --- a/dafyomi/event.go +++ b/dafyomi/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type dafYomiEvent struct { diff --git a/go.mod b/go.mod index 72b50ca..e1c27d5 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,9 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/dustin/go-humanize v1.0.1 // indirect + github.com/hebcal/locales v0.9.0 // indirect github.com/nathan-osman/go-sunrise v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/text v0.21.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 3bbcca4..4503d5a 100644 --- a/go.sum +++ b/go.sum @@ -11,6 +11,8 @@ github.com/hebcal/hdate v1.2.3 h1:M6DBwA2dUbS8P5kqc2wnZD7TYns85jTcXwvUzDh/KXI= github.com/hebcal/hdate v1.2.3/go.mod h1:TgWO5XSsx/FytmKTme0JvDwxOSDZ96B3xrQ4PIBZYXw= github.com/hebcal/hebcal-go v0.14.0 h1:gGC64TXbPO9tlhgjIXrkY9knreUCyfFLqymr/mJGe64= github.com/hebcal/hebcal-go v0.14.0/go.mod h1:kVj/kiCIBU44CoViYDj0scMMEL672NkKN81taRzoaX8= +github.com/hebcal/locales v0.9.0 h1:fNnzOXKbpHYFY6/2Uzh1bkHSzCt1uuDeRQVBmKEsFVI= +github.com/hebcal/locales v0.9.0/go.mod h1:KzagA5BjUI9Eh8BxLMmt0J91ByjeeswM54abysBdxXI= github.com/nathan-osman/go-sunrise v1.1.0 h1:ZqZmtmtzs8Os/DGQYi0YMHpuUqR/iRoJK+wDO0wTCw8= github.com/nathan-osman/go-sunrise v1.1.0/go.mod h1:RcWqhT+5ShCZDev79GuWLayetpJp78RSjSWxiDowmlM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -26,6 +28,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/mishnayomi/event.go b/mishnayomi/event.go index 1a2b3e3..d49ddd1 100644 --- a/mishnayomi/event.go +++ b/mishnayomi/event.go @@ -21,7 +21,7 @@ import ( "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type mishnaYomiEvent struct { diff --git a/nachyomi/event.go b/nachyomi/event.go index c91ebbb..c145bd4 100644 --- a/nachyomi/event.go +++ b/nachyomi/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" "github.com/hebcal/learning/dafyomi" ) diff --git a/nine29/event.go b/nine29/event.go index 7570ad3..86676ba 100644 --- a/nine29/event.go +++ b/nine29/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type nine29Event struct { diff --git a/perekyomi/event.go b/perekyomi/event.go index e6df3d7..4654e1b 100644 --- a/perekyomi/event.go +++ b/perekyomi/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type perekYomiEvent struct { diff --git a/pirkeiavot/event.go b/pirkeiavot/event.go index 5aaa55b..f6cb3d2 100644 --- a/pirkeiavot/event.go +++ b/pirkeiavot/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) const pirkeiAvot = "Pirkei Avot" diff --git a/psalms/event.go b/psalms/event.go index 4659cba..b0b256a 100644 --- a/psalms/event.go +++ b/psalms/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type psalmsEvent struct { diff --git a/rambam/event.go b/rambam/event.go index 4693e9f..5698443 100644 --- a/rambam/event.go +++ b/rambam/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) // renderReading renders a single Mishneh Torah reading in the given locale. diff --git a/tanakhyomi/event.go b/tanakhyomi/event.go index d5c5f21..5458e63 100644 --- a/tanakhyomi/event.go +++ b/tanakhyomi/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" ) type tanakhYomiEvent struct { diff --git a/yerushalmi/event.go b/yerushalmi/event.go index aab4250..c3ec7ad 100644 --- a/yerushalmi/event.go +++ b/yerushalmi/event.go @@ -23,7 +23,7 @@ import ( "github.com/hebcal/gematriya" "github.com/hebcal/hdate" "github.com/hebcal/hebcal-go/event" - "github.com/hebcal/hebcal-go/locales" + "github.com/hebcal/locales" "github.com/hebcal/learning/dafyomi" )