diff --git a/v2/example/main.go b/v2/example/main.go index 838e1456..cc656340 100644 --- a/v2/example/main.go +++ b/v2/example/main.go @@ -9,7 +9,7 @@ import ( "strconv" "github.com/BurntSushi/toml" - "github.com/nicksnyder/go-i18n/v2/i18n" + "github.com/gohugoio/go-i18n/v2/i18n" "golang.org/x/text/language" ) diff --git a/v2/go.mod b/v2/go.mod index 447a6857..b11a0ed9 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -1,6 +1,6 @@ -module github.com/nicksnyder/go-i18n/v2 +module github.com/gohugoio/go-i18n/v2 -go 1.9 +go 1.16 require ( github.com/BurntSushi/toml v0.3.1 diff --git a/v2/goi18n/extract_command.go b/v2/goi18n/extract_command.go index 67afab4a..2fbc7c04 100644 --- a/v2/goi18n/extract_command.go +++ b/v2/goi18n/extract_command.go @@ -12,7 +12,7 @@ import ( "strconv" "strings" - "github.com/nicksnyder/go-i18n/v2/i18n" + "github.com/gohugoio/go-i18n/v2/i18n" ) func usageExtract() { @@ -282,7 +282,7 @@ func extractStringLiteral(expr ast.Expr) (string, bool) { func i18nPackageName(file *ast.File) string { for _, i := range file.Imports { - if i.Path.Kind == token.STRING && i.Path.Value == `"github.com/nicksnyder/go-i18n/v2/i18n"` { + if i.Path.Kind == token.STRING && i.Path.Value == `"github.com/gohugoio/go-i18n/v2/i18n"` { if i.Name == nil { return "i18n" } diff --git a/v2/goi18n/extract_command_test.go b/v2/goi18n/extract_command_test.go index 3cfe581b..60af3a8f 100644 --- a/v2/goi18n/extract_command_test.go +++ b/v2/goi18n/extract_command_test.go @@ -26,7 +26,7 @@ func TestExtract(t *testing.T) { fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var m = &i18n.Message{ ID: "Plural ID", @@ -38,7 +38,7 @@ func TestExtract(t *testing.T) { fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var hasnewline = &i18n.Message{ ID: "hasnewline", @@ -53,7 +53,7 @@ func TestExtract(t *testing.T) { fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var a = &i18n.Message{ ID: "a", @@ -73,7 +73,7 @@ b = "a \" b" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var a = []*i18n.Message{ { @@ -95,7 +95,7 @@ b = "b" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var a = map[string]*i18n.Message{ "a": { @@ -117,7 +117,7 @@ b = "b" fileName: "file_test.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" func main() { bundle := i18n.NewBundle(language.English) @@ -131,7 +131,7 @@ b = "b" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" func main() { bundle := i18n.NewBundle(language.English) @@ -145,7 +145,7 @@ b = "b" fileName: "file.go", file: `package main - import bar "github.com/nicksnyder/go-i18n/v2/i18n" + import bar "github.com/gohugoio/go-i18n/v2/i18n" func main() { _ := &bar.Message{ @@ -159,7 +159,7 @@ b = "b" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" func main() { _ := &i18n.Message{ @@ -189,7 +189,7 @@ zero = "Zero translation" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" func main() { _ := &i18n.Message{ @@ -205,7 +205,7 @@ zero = "Zero translation" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" const constID = "ConstantID" @@ -222,7 +222,7 @@ zero = "Zero translation" fileName: "file.go", file: `package main - import "github.com/nicksnyder/go-i18n/v2/i18n" + import "github.com/gohugoio/go-i18n/v2/i18n" var m = &i18n.LocalizeConfig{ Funcs: Funcs, diff --git a/v2/goi18n/main.go b/v2/goi18n/main.go index f2f3d2c1..bc8668e4 100644 --- a/v2/goi18n/main.go +++ b/v2/goi18n/main.go @@ -1,6 +1,6 @@ // Command goi18n manages message files used by the i18n package. // -// go get -u github.com/nicksnyder/go-i18n/v2/goi18n +// go get -u github.com/gohugoio/go-i18n/v2/goi18n // goi18n -help // // Use `goi18n extract` to create a message file that contains the messages defined in your Go source files. diff --git a/v2/goi18n/marshal.go b/v2/goi18n/marshal.go index a6cc762f..396947a3 100644 --- a/v2/goi18n/marshal.go +++ b/v2/goi18n/marshal.go @@ -7,8 +7,8 @@ import ( "path/filepath" "github.com/BurntSushi/toml" - "github.com/nicksnyder/go-i18n/v2/i18n" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/i18n" + "github.com/gohugoio/go-i18n/v2/internal/plural" "golang.org/x/text/language" yaml "gopkg.in/yaml.v2" ) diff --git a/v2/goi18n/merge_command.go b/v2/goi18n/merge_command.go index b736dfe9..26909d15 100644 --- a/v2/goi18n/merge_command.go +++ b/v2/goi18n/merge_command.go @@ -10,9 +10,9 @@ import ( "os" "github.com/BurntSushi/toml" - "github.com/nicksnyder/go-i18n/v2/i18n" - "github.com/nicksnyder/go-i18n/v2/internal" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/i18n" + "github.com/gohugoio/go-i18n/v2/internal" + "github.com/gohugoio/go-i18n/v2/internal/plural" "golang.org/x/text/language" yaml "gopkg.in/yaml.v2" ) diff --git a/v2/i18n/bundle.go b/v2/i18n/bundle.go index ac1bd039..7d36d9e2 100644 --- a/v2/i18n/bundle.go +++ b/v2/i18n/bundle.go @@ -4,7 +4,7 @@ import ( "fmt" "io/ioutil" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/internal/plural" "golang.org/x/text/language" ) diff --git a/v2/i18n/example_test.go b/v2/i18n/example_test.go index 2256e636..4942df57 100644 --- a/v2/i18n/example_test.go +++ b/v2/i18n/example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/BurntSushi/toml" - "github.com/nicksnyder/go-i18n/v2/i18n" + "github.com/gohugoio/go-i18n/v2/i18n" "golang.org/x/text/language" ) diff --git a/v2/i18n/localizer.go b/v2/i18n/localizer.go index 17261e2e..59a14652 100644 --- a/v2/i18n/localizer.go +++ b/v2/i18n/localizer.go @@ -4,7 +4,7 @@ import ( "fmt" "text/template" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/internal/plural" "golang.org/x/text/language" ) diff --git a/v2/i18n/localizer_test.go b/v2/i18n/localizer_test.go index 3dedfb67..12d646d3 100644 --- a/v2/i18n/localizer_test.go +++ b/v2/i18n/localizer_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/internal/plural" "golang.org/x/text/language" ) diff --git a/v2/i18n/message_template.go b/v2/i18n/message_template.go index a1a619e2..eae3cc7a 100644 --- a/v2/i18n/message_template.go +++ b/v2/i18n/message_template.go @@ -5,8 +5,8 @@ import ( "text/template" - "github.com/nicksnyder/go-i18n/v2/internal" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/internal" + "github.com/gohugoio/go-i18n/v2/internal/plural" ) // MessageTemplate is an executable template for a message. diff --git a/v2/i18n/message_template_test.go b/v2/i18n/message_template_test.go index d920cd4d..6eae20ad 100644 --- a/v2/i18n/message_template_test.go +++ b/v2/i18n/message_template_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/nicksnyder/go-i18n/v2/internal/plural" + "github.com/gohugoio/go-i18n/v2/internal/plural" ) func TestMessageTemplate(t *testing.T) {