Skip to content

Commit

Permalink
Temporary update module path
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 5, 2023
1 parent e3e883d commit edb6f6d
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion v2/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions v2/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/nicksnyder/go-i18n/v2
module github.com/gohugoio/go-i18n/v2

go 1.12
go 1.16

require (
github.com/BurntSushi/toml v1.0.0
golang.org/x/text v0.4.0
github.com/BurntSushi/toml v0.3.1
golang.org/x/text v0.3.3
gopkg.in/yaml.v2 v2.3.0
)
4 changes: 2 additions & 2 deletions v2/goi18n/extract_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"github.com/nicksnyder/go-i18n/v2/i18n"
"github.com/gohugoio/go-i18n/v2/i18n"
)

func usageExtract() {
Expand Down Expand Up @@ -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"
}
Expand Down
24 changes: 12 additions & 12 deletions v2/goi18n/extract_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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{
{
Expand All @@ -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": {
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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{
Expand All @@ -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{
Expand Down Expand Up @@ -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{
Expand All @@ -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"
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion v2/goi18n/main.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions v2/goi18n/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
6 changes: 3 additions & 3 deletions v2/goi18n/merge_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion v2/i18n/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion v2/i18n/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/i18n/localizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/i18n/localizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions v2/i18n/message_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion v2/i18n/message_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit edb6f6d

Please sign in to comment.