Releases: nicksnyder/go-i18n
v2.4.1
Bug fixes
- fallback to empty string message
""
when get nil value by @LemonNekoGH in #326 - fix: option in TextParser is not used by @cazeaux in #335
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's new
This release adds support for configurable template parsers in #317.
By setting TemplateParser on LocalizeConfig it is now possible to:
- Disable template parsing (via IdentityParser)
- Set the template.Option on a text/template Template (via TextParser)
- Use a template parser that is not
text/template
by implementing the Parser interface.
Full Changelog: v2.3.0...v2.4.0
v2.3.0
New features
- Export fields in MessageNotFoundErr (#306) by @stephenafamo in #307
- Update to CLDR data v44 by @nicksnyder in #310
Bug fixes
- Use correct plural forms when merging translations by @stephenafamo in #309
Maintenance
- Remove usage of deprecated io/ioutil and upgrade to Go 1.16 by @stephenafamo in #308
- Upgrade dependencies and upgrade Go to 1.18 by @nicksnyder in #311
- Update Codecov action to v3 by @nicksnyder in #312
New Contributors
- @stephenafamo made their first contribution in #307
Full Changelog: v2.2.2...v2.3.0
v2.2.2
New features
- extract: support typed string constants by @hectorj-thetreep in #304
Bug fixes
Maintenance
- fix misleading comment on MustLoadMessageFile function by @ardaozceviz in #298
- goi18n安装命令更新 by @qwxingzhe in #296
- Fix build by @nicksnyder in #299
- Update GitHub actions by @nicksnyder in #300
- Tune the Chinese version of README by @tengqm in #303
New Contributors
- @ardaozceviz made their first contribution in #298
- @qwxingzhe made their first contribution in #296
- @tengqm made their first contribution in #303
- @hectorj-thetreep made their first contribution in #304
- @KuSh made their first contribution in #305
Full Changelog: v2.2.1...v2.3.0
v2.2.1
What's Changed
- doc(localizer): add specification about language tag detection by @ColinBoisLydia in #270
- chore: add "README.zh-Hans.md" and optimized documentation by @misitebao in #273
- go 1.18.3 by @nicksnyder in #274
- Update to golang.org/x/text v0.4.0 by @nicksnyder in #286
- Upgrade to Go 1.19.3 by @nicksnyder in #288
New Contributors
- @ColinBoisLydia made their first contribution in #270
- @misitebao made their first contribution in #273
Full Changelog: v2.2.0...v2.2.1
v2.2.0
v2.1.2
v2.1.1
v2.1.0
v2.0.4
This release fixes a few bugs with goi18n extract
and goi18n merge
, and it greatly increases the performance of the i18n
package when localizing messages.
Changelog
9926328 Add build step (#226)
d17510c Update goreleaser.yml
9c75f7e goreleaser workflow (#225)
e15e8df fixed panic: runtime error: index out of range [0] with length 0 (#212)
8f09be8 fixes nil reference exception if localization text is empty, fixes #207 (#208)
354b2fc Pull request event
66dee75 simpler fallback behavior (#189)
663c088 tweak codecov
51d732d Build with GitHub actions (#224)
949485d Add a nil pointer check before dereferencing an identifier's Obj (#211)