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

Fix Localize regression with empty default message #305

Merged
merged 3 commits into from
Oct 23, 2023

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 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 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
4 checks passed
@nicksnyder
Copy link
Owner

Thanks for the fix!

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.

None yet

2 participants