Releases: nicksnyder/go-i18n
Releases · nicksnyder/go-i18n
v2.5.1
What's Changed
- Fix case sensitivity with message keys by @nicksnyder in #358
Note: There have always been a small number of reserved words that cannot be used in message keys:id
,description
,hash
,leftdelim
,rightdelim
,zero
,one
,two
,few
,many
,other
. Prior to this release, only the lowercase versions were reserved. As of this release, any casing of these words are reserved (e.g. "Description", "ID"). This should have always been the case to align with the case insensitivity of message parsing, and the fact that it wasn't is a bug that is now fixed.
Full Changelog: v2.5.0...v2.5.1
v2.5.0
Highlights
- Error if reserved message keys are mixed with unreserved keys by @nicksnyder in #320
- Add convenience function
MustLocalizeMessage
by @apricotbucket28 in #352
Other changes
- Upgrade codecov action to v4 by @nicksnyder in #337
- Bump actions/setup-go from 2 to 5 by @dependabot in #341
- Bump actions/checkout from 1 to 4 by @dependabot in #339
- Bump golangci/golangci-lint-action from 3 to 6 by @dependabot in #340
- Bump goreleaser/goreleaser-action from 2 to 6 by @dependabot in #342
- Better build step condition by @nicksnyder in #344
- Use stable Go version in all workflows by @nicksnyder in #343
- switch to scip by @nicksnyder in #345
- Create README.uk-UA.md by @dejurin in #336
- Bump golang.org/x/text from 0.19.0 to 0.20.0 by @dependabot in #351
- Bump golang.org/x/text from 0.20.0 to 0.21.0 by @dependabot in #354
New Contributors
- @dependabot made their first contribution in #341
- @dejurin made their first contribution in #336
- @apricotbucket28 made their first contribution in #352
Full Changelog: v2.4.1...v2.5.0
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