Skip to content

Conversation

@KuSh
Copy link
Contributor

@KuSh KuSh commented Oct 21, 2023

Behavior has changed with #189. Before that, an empty default message returned nil and an error, now it returns "" without error.

This has been detected by mattermost test suit in mattermost/mattermost#21327 which tries to switch all code base to go-i18n v2, see related discussion

Behavior has changed with #189. Before that, an empty default message returned nil and an error, now it returns "" without error.

This has been detected by mattermost test suit in mattermost/mattermost#21327 which tries to switch all code base to go-i18n v2, see https://github.com/mattermost/mattermost/pull/21327/files#r1365634307
@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

Merging #305 (517a79b) into main (5ee16aa) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   82.41%   82.46%   +0.04%     
==========================================
  Files          15       15              
  Lines        1183     1186       +3     
==========================================
+ Hits          975      978       +3     
  Misses        145      145              
  Partials       63       63              
Files Coverage Δ
v2/i18n/localizer.go 92.95% <100.00%> (+0.31%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nicksnyder nicksnyder merged commit 54617ef into nicksnyder:main Oct 23, 2023
@nicksnyder
Copy link
Owner

Thanks for the fix!

@bep bep mentioned this pull request Oct 18, 2025
bep pushed a commit to gohugoio/go-i18n that referenced this pull request Oct 18, 2025
Behavior has changed with nicksnyder#189. Before that, an empty default message returned nil and an error, now it returns "" without error.

This has been detected by mattermost test suit in mattermost/mattermost#21327 which tries to switch all code base to go-i18n v2, see [related discussion](https://github.com/mattermost/mattermost/pull/21327/files#r1365634307)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants