You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-13
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Major version changes are documented in the changelog.
4
4
5
-
To see the documentation for minor or patch version, [view the release notes](https://github.com/nicksnyder/go-i18n/releases).
5
+
To see the documentation for minor or patch version, [view the release notes](https://github.com/nicksnyder/test/releases).
6
6
7
7
## v2
8
8
@@ -12,28 +12,28 @@ The first commit to this project was January 2012 (go1 had not yet been released
12
12
This project has evolved with the Go ecosystem since then in a backwards compatible way,
13
13
but there is a growing list of issues and warts that cannot be addressed without breaking compatiblity.
14
14
15
-
v2 is rewrite of the API from first principals to make it more idiomatic Go, and to resolve a backlog of issues: https://github.com/nicksnyder/go-i18n/milestone/1
15
+
v2 is rewrite of the API from first principals to make it more idiomatic Go, and to resolve a backlog of issues: https://github.com/nicksnyder/test/milestone/1
16
16
17
17
### Improvements
18
18
19
-
* Use `golang.org/x/text/language` to get standardized behavior for language matching (https://github.com/nicksnyder/go-i18n/issues/30, https://github.com/nicksnyder/go-i18n/issues/44, https://github.com/nicksnyder/go-i18n/issues/76)
20
-
* Remove global state so that the race detector does not complain when downstream projects run tests that depend on go-i18n in parallel (https://github.com/nicksnyder/go-i18n/issues/82)
21
-
* Automatically extract messages from Go source code (https://github.com/nicksnyder/go-i18n/issues/64)
22
-
* Provide clearer documentation and examples (https://github.com/nicksnyder/go-i18n/issues/27)
23
-
* Reduce complexity of file format for simple translations (https://github.com/nicksnyder/go-i18n/issues/85)
24
-
* Support descriptions for messages (https://github.com/nicksnyder/go-i18n/issues/8)
25
-
* Support custom template delimiters (https://github.com/nicksnyder/go-i18n/issues/88)
19
+
- Use `golang.org/x/text/language` to get standardized behavior for language matching (https://github.com/nicksnyder/test/issues/30, https://github.com/nicksnyder/test/issues/44, https://github.com/nicksnyder/test/issues/76)
20
+
- Remove global state so that the race detector does not complain when downstream projects run tests that depend on go-i18n in parallel (https://github.com/nicksnyder/test/issues/82)
21
+
- Automatically extract messages from Go source code (https://github.com/nicksnyder/test/issues/64)
22
+
- Provide clearer documentation and examples (https://github.com/nicksnyder/test/issues/27)
23
+
- Reduce complexity of file format for simple translations (https://github.com/nicksnyder/test/issues/85)
24
+
- Support descriptions for messages (https://github.com/nicksnyder/test/issues/8)
25
+
- Support custom template delimiters (https://github.com/nicksnyder/test/issues/88)
26
26
27
27
### Upgrading from v1
28
28
29
29
The i18n package in v2 is completely different than v1.
30
-
Refer to the [documentation](https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n) and [README](https://github.com/nicksnyder/go-i18n/blob/master/README.md) for guidance.
30
+
Refer to the [documentation](https://godoc.org/github.com/nicksnyder/test/v2/i18n) and [README](https://github.com/nicksnyder/test/blob/master/README.md) for guidance.
31
31
32
32
The goi18n command has similarities and differences:
33
33
34
-
*`goi18n merge` has a new implementation but accomplishes the same task.
35
-
*`goi18n extract` extracts messages from Go source files.
36
-
*`goi18n constants` no longer exists. Prefer to extract messages directly from Go source files.
34
+
-`goi18n merge` has a new implementation but accomplishes the same task.
35
+
-`goi18n extract` extracts messages from Go source files.
36
+
-`goi18n constants` no longer exists. Prefer to extract messages directly from Go source files.
37
37
38
38
v2 makes changes to the canonical message file format, but you can use v1 message files with v2. Message files will be converted to the new format the first time they are processed by the new `goi18n merge` command.
go-i18n is a Go [package](#package-i18n) and a [command](#command-goi18n) that helps you translate Go programs into multiple languages.
4
4
5
5
- Supports [pluralized strings](http://cldr.unicode.org/index/cldr-spec/plural-rules) for all 200+ languages in the [Unicode Common Locale Data Repository (CLDR)](http://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html).
6
-
- Code and tests are [automatically generated](https://github.com/nicksnyder/go-i18n/tree/master/i18n/language/codegen) from [CLDR data](http://cldr.unicode.org/index/downloads).
6
+
- Code and tests are [automatically generated](https://github.com/nicksnyder/test/tree/master/i18n/language/codegen) from [CLDR data](http://cldr.unicode.org/index/downloads).
7
7
- Supports strings with named variables using [text/template](http://golang.org/pkg/text/template/) syntax.
8
8
- Supports message files of any format (e.g. JSON, TOML, YAML, etc.).
9
-
-[Documented](http://godoc.org/github.com/nicksnyder/go-i18n) and [tested](https://travis-ci.org/nicksnyder/go-i18n)!
9
+
-[Documented](http://godoc.org/github.com/nicksnyder/test) and [tested](https://travis-ci.org/nicksnyder/test)!
The goi18n command manages message files used by the i18n package.
62
62
63
63
```
64
-
go get -u github.com/nicksnyder/go-i18n/v2/goi18n
64
+
go get -u github.com/nicksnyder/test/v2/goi18n
65
65
goi18n -help
66
66
```
67
67
@@ -116,9 +116,9 @@ If you have added new messages to your program:
116
116
117
117
## For more information and examples:
118
118
119
-
- Read the [documentation](http://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n).
120
-
- Look at the [code examples](https://github.com/nicksnyder/go-i18n/blob/master/v2/i18n/example_test.go) and [tests](https://github.com/nicksnyder/go-i18n/blob/master/v2/i18n/localizer_test.go).
121
-
- Look at an example [application](https://github.com/nicksnyder/go-i18n/tree/master/v2/example).
119
+
- Read the [documentation](http://godoc.org/github.com/nicksnyder/test/v2/i18n).
120
+
- Look at the [code examples](https://github.com/nicksnyder/test/blob/master/v2/i18n/example_test.go) and [tests](https://github.com/nicksnyder/test/blob/master/v2/i18n/localizer_test.go).
121
+
- Look at an example [application](https://github.com/nicksnyder/test/tree/master/v2/example).
0 commit comments