flamingo
flamingo copied to clipboard
chore(deps): update module github.com/nicksnyder/go-i18n to v2
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
github.com/nicksnyder/go-i18n | v0.0.0-20180814031359-04f547cc50da -> v2.4.1 |
Release Notes
nicksnyder/go-i18n (github.com/nicksnyder/go-i18n)
v2.4.1
Bug fixes
- fallback to empty string message
""
when get nil value by @LemonNekoGH in https://github.com/nicksnyder/go-i18n/pull/326 - fix: option in TextParser is not used by @cazeaux in https://github.com/nicksnyder/go-i18n/pull/335
Full Changelog: https://github.com/nicksnyder/go-i18n/compare/v2.4.0...v2.4.1
v2.4.0
What's new
This release adds support for configurable template parsers in https://github.com/nicksnyder/go-i18n/pull/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: https://github.com/nicksnyder/go-i18n/compare/v2.3.0...v2.4.0
v2.4.0+incompatible
v2.3.0
New features
- Export fields in MessageNotFoundErr (#306) by @stephenafamo in https://github.com/nicksnyder/go-i18n/pull/307
- Update to CLDR data v44 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/310
Bug fixes
- Use correct plural forms when merging translations by @stephenafamo in https://github.com/nicksnyder/go-i18n/pull/309
Maintenance
- Remove usage of deprecated io/ioutil and upgrade to Go 1.16 by @stephenafamo in https://github.com/nicksnyder/go-i18n/pull/308
- Upgrade dependencies and upgrade Go to 1.18 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/311
- Update Codecov action to v3 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/312
New Contributors
- @stephenafamo made their first contribution in https://github.com/nicksnyder/go-i18n/pull/307
Full Changelog: https://github.com/nicksnyder/go-i18n/compare/v2.2.2...v2.3.0
v2.3.0+incompatible
v2.2.2
New features
- extract: support typed string constants by @hectorj-thetreep in https://github.com/nicksnyder/go-i18n/pull/304
Bug fixes
- Fix Localize regression with empty default message by @KuSh in https://github.com/nicksnyder/go-i18n/pull/305
Maintenance
- fix misleading comment on MustLoadMessageFile function by @ardaozceviz in https://github.com/nicksnyder/go-i18n/pull/298
- goi18n安装命令更新 by @qwxingzhe in https://github.com/nicksnyder/go-i18n/pull/296
- Fix build by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/299
- Update GitHub actions by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/300
- Tune the Chinese version of README by @tengqm in https://github.com/nicksnyder/go-i18n/pull/303
New Contributors
- @ardaozceviz made their first contribution in https://github.com/nicksnyder/go-i18n/pull/298
- @qwxingzhe made their first contribution in https://github.com/nicksnyder/go-i18n/pull/296
- @tengqm made their first contribution in https://github.com/nicksnyder/go-i18n/pull/303
- @hectorj-thetreep made their first contribution in https://github.com/nicksnyder/go-i18n/pull/304
- @KuSh made their first contribution in https://github.com/nicksnyder/go-i18n/pull/305
Full Changelog: https://github.com/nicksnyder/go-i18n/compare/v2.2.1...v2.3.0
v2.2.2+incompatible
v2.2.1
What's Changed
- doc(localizer): add specification about language tag detection by @ColinBoisLydia in https://github.com/nicksnyder/go-i18n/pull/270
- chore: add "README.zh-Hans.md" and optimized documentation by @misitebao in https://github.com/nicksnyder/go-i18n/pull/273
- go 1.18.3 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/274
- Update to golang.org/x/text v0.4.0 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/286
- Upgrade to Go 1.19.3 by @nicksnyder in https://github.com/nicksnyder/go-i18n/pull/288
New Contributors
- @ColinBoisLydia made their first contribution in https://github.com/nicksnyder/go-i18n/pull/270
- @misitebao made their first contribution in https://github.com/nicksnyder/go-i18n/pull/273
Full Changelog: https://github.com/nicksnyder/go-i18n/compare/v2.2.0...v2.2.1
v2.2.1+incompatible
v2.2.0
Changelog
-
7f6b563
Upgrade dependencies (#268) -
240abfe
Upgrade Go to 1.16.5 (#261) -
dadad2b
Update test to new error message in go 1.16 (#260) -
482713a
README.md: fixing broken links (#251) -
2180cd9
Add support for loading bundle from fs.FS (#246) -
5d2ec5f
Fix workflow condition (#249)
v2.2.0+incompatible
v2.1.2
Changelog
c587b0d
fix escape sequences when extracting string literals (#244)
a5b9f57
Fixing typos (#242)
603af13
Add Sourcegraph code intelligence
7ff69e7
Fix broken link (#229)
v2.1.2+incompatible
v2.1.1
Changelog
703c3bd
Do not encode HTML entities in JSON message files (#228)
v2.1.1+incompatible
v2.1.0
Changelog
e2aedcf
Upgrade CLDR data to v37 (#227)
cba41a4
upgrade deps
v2.1.0+incompatible
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)
v2.0.4+incompatible
v2.0.3
Changelog
26334ab
minimum go version
275c8ec
fix(goi18n): could not extract constant message id (#202)
3f2fe62
add benchmarks (#190)
48ecfc2
remove go.mod
0e318ba
fix automatic release
de0ca95
remove comment
d69004e
only deploy from latest
v2.0.3+incompatible
v2.0.2
Changelog
0c6ce6a
Move code to v2 subfolder for greater compatibility (#187)
25e77af
deploy when tag is pushed (#186)
1b244f7
Fix path in README (#185)
v2.0.2+incompatible
v2.0.1
Changelog
e0f0d41
Fix data race and optimize performance (#183)
38f9eac
Update README.md (#177)
be3966f
v2 only (#176)
v2.0.0
Changelog
3c6ee90
update goreleaser
d1ef4ae
update to CLDR v35.1 (2019-04-17) (#175)
b280125
Revert "change package"
b5ee509
change package
v2.0.0-beta.7
There is one small backwards incompatible change from beta.6, which is that you now need to call NewBundle
to create a bundle (instead of using a struct literal). See https://github.com/nicksnyder/go-i18n/pull/163/files.
There are no more known issues filed on the repo that would prevent v2.0.0 from being tagged but I am going to let beta.7 bake for a bit before actually tagging v2.0.0.
Changelog
6d605d0
attempt fallback to "other" plural form (#174)
4cc2a0f
fix build
a8a5c04
remove LocalizeMessageID until extract can extract it
20fdd68
add convenience functions (#173)
3b00441
improve readme
245a313
support artificial languages (#171)
8ad1b00
update x/text
1c44ce2
export message (#170)
14847a9
enable gofmt
70cf5c1
cleanup
a3498dc
extract messages from slices and maps (#169)
4878883
update readme to reflect changes made in https://github.com/nicksnyder/go-i18n/pull/163
030e502
handle null in json (#166)
b2843f1
escape extracted strings correctly (#165)
45eb7b3
don't extract strings from _test.go files (#164)
5a9fdb7
add NewBundle and remove init (#163)
7e9faa0
go 1.12
7e1988a
remove sudo:false (#162)
8b3465d
Nested translation support (#157)
7a73c96
Fix deserialization of leftDelim and rightDelim
d698e2f
Provide nice output of plural form not found error (#147)
cc0ca3b
add .golangci.yml (#144)
v2.0.0-beta.6
Changelog
178b9fc
extract concatenated strings (#143)
0ebaecb
Better extract/merge workflow documentation (#140)
ad28c68
Add LocalizeWithTag (#139)
c52be5d
update to CLDR 34
fc57a7d
Export MessageNotFoundErr (#124)
f406bb2
error if message ids mismatch (#132)
04f547c
Fixed localizer example (#122)
e786c88
add func to list Language tags from bundle (#120)
v2.0.0-beta.5
Fix v2 go.mod
v2.0.0-beta.4
- Handle
zh
correctly (https://github.com/nicksnyder/go-i18n/pull/109) - Improvements to
goi18n extract
(https://github.com/nicksnyder/go-i18n/pull/108) - Fix
go.mod
(https://github.com/nicksnyder/go-i18n/pull/117)
v2.0.0-beta.3
-
i18n.NewBundle(language.English)
->&i18n.Bundle{DefaultLanguage: language.English}
- Define custom funcs in message templates https://github.com/nicksnyder/go-i18n/pull/100
-
goi18n extract
walks current directory by default https://github.com/nicksnyder/go-i18n/commit/dfe004af416b4d9253603996f689f8b5c752326a - Better example https://github.com/nicksnyder/go-i18n/pull/102
- Proper semver tag for beta releases https://github.com/nicksnyder/go-i18n/issues/104
v2.0.0-beta.2
: 2.0.0-beta.2
- Update CLDR data to v33.
- Fix issue that caused extract to always output toml, even if
-format
parameter was provided. - Fix panic when translation is empty.
v2.0.0-beta.1
: 2.0.0-beta.1
See the changelog for a description of v2.
Please file any issues that you experience.
Although I don't currently anticipate making any more changes to v2 API at this point, breaking changes are possible until v2.0.0
is tagged.
v1.10.3
v1.10.2
v1.10.1
v1.10.0
: 1.10.0
Export language.GetPluralSpec
#83
v1.9.0
: 1.9.0
Enhancements
- Export
language.RegisterPluralFunc
- Export
language.Operand
- Update to CLDR 31.0.1
- Fix panic in goi18n command https://github.com/nicksnyder/go-i18n/issues/48
v1.8.1
: 1.8.1
Fix issue with leading comments on .yaml
files.
v1.8.0
: 1.8.0
Added support for TOML and a new flatter file format for all encodings (including YAML and JSON). https://github.com/nicksnyder/go-i18n/pull/65 https://github.com/nicksnyder/go-i18n/pull/66 @bogem
v1.7.0
: 1.7.0
Bundles are now goroutine safe. #54 #59 @emosbaugh
Improved error message when translation file fails to parse. #55 @mh-cbon
v1.6.0
: 1.6.0
The count used to determine which plural form to use for a translation may now be provided in the template data (#53)
Thanks @mh-cbon and @benoittoulme!
v1.5.0
: 1.5.0
A new command has been added to goi18n
.
goi18n constants
generates a file of constants for each translation id.
e.g.
package R
// MyHeightInMeters is the identifier for the following localizable string template(s):
// one: "I am {{.Count}} meter tall."
// other: "I am {{.Count}} meters tall."
const MyHeightInMeters = "my_height_in_meters"
Thanks @rodrigocorsi2!
v1.4.0
: 1.4.0
Add support for YAML translation files (uses go-yaml).
Remember to run go get -u github.com/nicksnyder/go-i18n/goi18n
to fetch/update transitive dependencies.
Thanks @zippoxer!
v1.3.0
: 1.3.0
Added plural support for all 200+ languages in the Unicode Common Locale Data Repository via code generation.
Added new APIs to inspect translations loaded into the default bundle
Thanks to those who contributed! @dennisfaust @parkr @dalu
v1.2.0
: 1.2.0
Template data may now be passed into a Tfunc as a struct (previously only maps were supported).
// These will print the same thing
fmt.Println(T("person_greeting", map[string]interface{}{"Person": "Bob"}))
fmt.Println(T("person_greeting", struct{ Person string }{Person: "Bob"}))
New language support
- Thai (
th
)
Thanks to those who contributed! @parkr @ExUltima
v1.1.0
: 1.1.0
Better support for short language tags
- If a user requests “zh” and there are no translations for that locale, then translations for “zh-hans” or “zh-hans-cn” will be used if available.
Added new APIs to retrieve the language associated with Tfunc
- TfuncAndLanguage
- MustTfuncAndLanguage
New language support
- Burmese (
my
)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.