Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update module github.com/nicksnyder/go-i18n to v2 #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 19, 2023

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 age adoption passing confidence

Release Notes

nicksnyder/go-i18n (github.com/nicksnyder/go-i18n)

v2.4.1

Compare Source

Bug fixes

Full Changelog: nicksnyder/go-i18n@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:

Full Changelog: nicksnyder/go-i18n@v2.3.0...v2.4.0

v2.3.0

New features

Bug fixes

Maintenance

New Contributors

Full Changelog: nicksnyder/go-i18n@v2.2.2...v2.3.0

v2.2.2

New features

Bug fixes

Maintenance

New Contributors

Full Changelog: nicksnyder/go-i18n@v2.2.1...v2.3.0

v2.2.1

What's Changed

New Contributors

Full Changelog: nicksnyder/go-i18n@v2.2.0...v2.2.1

v2.2.0

Changelog

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.1

Changelog

703c3bd Do not encode HTML entities in JSON message files (#​228)

v2.1.0

Changelog

e2aedcf Upgrade CLDR data to v37 (#​227)
cba41a4 upgrade deps

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.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.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.1

Compare Source

Changelog

e0f0d41 Fix data race and optimize performance (#​183)
38f9eac Update README.md (#​177)
be3966f v2 only (#​176)

v2.0.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

Fix v2 go.mod

v2.0.0-beta.4

Compare Source

v2.0.0-beta.3

Compare Source

v2.0.0-beta.2: 2.0.0-beta.2

Compare Source

  • 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

Compare Source

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

Compare Source

v1.10.2

Compare Source

v1.10.1

Compare Source

v1.10.0: 1.10.0

Compare Source

Export language.GetPluralSpec #​83

v1.9.0: 1.9.0

Compare Source

Enhancements

v1.8.1: 1.8.1

Compare Source

Fix issue with leading comments on .yaml files.

v1.8.0: 1.8.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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)

Thanks to those who contributed!
@​mash @​wichert


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.

@carstendietrich carstendietrich added the needs-tests code not covered by tests label Jan 26, 2023
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from 33b9c87 to e9a27fe Compare January 26, 2023 14:12
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from 508f46f to f567e76 Compare February 13, 2023 17:28
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from f567e76 to 9ff8004 Compare February 27, 2023 12:25
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from 187820f to e44f04c Compare March 11, 2023 12:53
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 2 times, most recently from 8d93339 to 0cf7359 Compare March 24, 2023 14:54
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from 8821bb0 to c6c073a Compare April 21, 2023 07:13
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 2 times, most recently from 1be664d to 0444f6f Compare May 5, 2023 16:51
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from 0444f6f to 578fd9b Compare May 19, 2023 10:30
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from b3b45fa to 7b47748 Compare June 1, 2023 15:06
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from 7b47748 to 7a49ce6 Compare June 15, 2023 13:04
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 2 times, most recently from f11df9f to 490da4a Compare July 13, 2023 13:22
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from 6084ac1 to ab00cf6 Compare August 3, 2023 13:45
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 4 times, most recently from 40d69f3 to 58b7049 Compare August 17, 2023 15:18
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from e36d15f to fff1d4a Compare July 18, 2024 09:41
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from fff1d4a to 74c51cb Compare July 25, 2024 12:27
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 3 times, most recently from fe74de3 to d7ecf82 Compare August 6, 2024 13:41
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 2 times, most recently from eefd8c5 to 384ec01 Compare August 22, 2024 13:07
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 6 times, most recently from 728a4cb to 38fda8a Compare September 5, 2024 13:13
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 6 times, most recently from 6b765c5 to 0d20f5d Compare September 19, 2024 13:43
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 4 times, most recently from 52db4e7 to a6f1bbb Compare September 30, 2024 08:55
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from a6f1bbb to d6f5ece Compare October 13, 2024 04:05
Copy link
Contributor Author

renovate bot commented Oct 13, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
golang.org/x/text v0.16.0 -> v0.19.0

@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch 2 times, most recently from 66032e3 to 3a90ca4 Compare October 31, 2024 13:49
@renovate renovate bot force-pushed the renovate/github.com-nicksnyder-go-i18n-2.x branch from 3a90ca4 to d335b78 Compare October 31, 2024 13:56
Copy link
Contributor

Code Coverage

Package Line Rate Health
flamingo.me/flamingo/v3 0%
flamingo.me/flamingo/v3/core/auth 13%
flamingo.me/flamingo/v3/core/auth/example/custom 0%
flamingo.me/flamingo/v3/core/auth/example 0%
flamingo.me/flamingo/v3/core/auth/fake 50%
flamingo.me/flamingo/v3/core/auth/http 40%
flamingo.me/flamingo/v3/core/auth/mock 0%
flamingo.me/flamingo/v3/core/auth/oauth 49%
flamingo.me/flamingo/v3/core/cache 66%
flamingo.me/flamingo/v3/core/gotemplate 87%
flamingo.me/flamingo/v3/core/healthcheck/domain/healthcheck 0%
flamingo.me/flamingo/v3/core/healthcheck/interfaces/controllers 76%
flamingo.me/flamingo/v3/core/healthcheck 66%
flamingo.me/flamingo/v3/core/internalauth/application 88%
flamingo.me/flamingo/v3/core/internalauth 100%
flamingo.me/flamingo/v3/core/locale/application 87%
flamingo.me/flamingo/v3/core/locale/domain 75%
flamingo.me/flamingo/v3/core/locale/infrastructure/fake 75%
flamingo.me/flamingo/v3/core/locale/infrastructure 0%
flamingo.me/flamingo/v3/core/locale/interfaces/controllers 100%
flamingo.me/flamingo/v3/core/locale/interfaces/templatefunctions 92%
flamingo.me/flamingo/v3/core/locale 59%
flamingo.me/flamingo/v3/core/oauth/application 4%
flamingo.me/flamingo/v3/core/oauth/application/fake 50%
flamingo.me/flamingo/v3/core/oauth/domain 62%
flamingo.me/flamingo/v3/core/oauth/example 0%
flamingo.me/flamingo/v3/core/oauth/infrastructure 0%
flamingo.me/flamingo/v3/core/oauth/interfaces 1%
flamingo.me/flamingo/v3/core/oauth/interfaces/fake 0%
flamingo.me/flamingo/v3/core/oauth 55%
flamingo.me/flamingo/v3/core/requestlogger 100%
flamingo.me/flamingo/v3/core/requesttask 10%
flamingo.me/flamingo/v3/core/robotstxt/interfaces 0%
flamingo.me/flamingo/v3/core/robotstxt 50%
flamingo.me/flamingo/v3/core/runtime 77%
flamingo.me/flamingo/v3/core/security/application/role 95%
flamingo.me/flamingo/v3/core/security/application 98%
flamingo.me/flamingo/v3/core/security/application/voter 100%
flamingo.me/flamingo/v3/core/security/domain 17%
flamingo.me/flamingo/v3/core/security/interface/controller 100%
flamingo.me/flamingo/v3/core/security/interface/middleware 72%
flamingo.me/flamingo/v3/core/security 59%
flamingo.me/flamingo/v3/core/silentzap 0%
flamingo.me/flamingo/v3/core/zap 78%
flamingo.me/flamingo/v3/examples/hello-world 0%
flamingo.me/flamingo/v3/framework/cmd 12%
flamingo.me/flamingo/v3/framework/config 49%
flamingo.me/flamingo/v3/framework/controller 0%
flamingo.me/flamingo/v3/framework/flamingo 37%
flamingo.me/flamingo/v3/framework/flamingo/healthcheck 0%
flamingo.me/flamingo/v3/framework 28%
flamingo.me/flamingo/v3/framework/opencensus 78%
flamingo.me/flamingo/v3/framework/prefixrouter 46%
flamingo.me/flamingo/v3/framework/systemendpoint/application 0%
flamingo.me/flamingo/v3/framework/systemendpoint 27%
flamingo.me/flamingo/v3/framework/testutil 0%
flamingo.me/flamingo/v3/framework/web 48%
flamingo.me/flamingo/v3/framework/web/filter 2%
Summary 42% (3539 / 8477)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-tests code not covered by tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants