Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/go-i18n.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v2/example/main.go2
-rw-r--r--v2/go.mod4
-rw-r--r--v2/goi18n/extract_command.go4
-rw-r--r--v2/goi18n/extract_command_test.go24
-rw-r--r--v2/goi18n/main.go2
-rw-r--r--v2/goi18n/marshal.go4
-rw-r--r--v2/goi18n/merge_command.go6
-rw-r--r--v2/i18n/bundle.go2
-rw-r--r--v2/i18n/example_test.go2
-rw-r--r--v2/i18n/localizer.go2
-rw-r--r--v2/i18n/localizer_test.go2
-rw-r--r--v2/i18n/message_template.go4
-rw-r--r--v2/i18n/message_template_test.go2
13 files changed, 30 insertions, 30 deletions
diff --git a/v2/example/main.go b/v2/example/main.go
index 838e145..cc65634 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 447a685..b11a0ed 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 67afab4..2fbc7c0 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 3cfe581..60af3a8 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 f2f3d2c..bc8668e 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 a6cc762..396947a 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 b736dfe..26909d1 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 ac1bd03..7d36d9e 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 2256e63..4942df5 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 17261e2..59a1465 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 3dedfb6..12d646d 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 a1a619e..eae3cc7 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 d920cd4..6eae20a 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) {