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

Upgrade I18n to 1.7.1 #2152

Merged
merged 1 commit into from
Jan 9, 2020
Merged

Upgrade I18n to 1.7.1 #2152

merged 1 commit into from
Jan 9, 2020

Conversation

jhanggi
Copy link
Contributor

@jhanggi jhanggi commented Jan 8, 2020

Release Notes

Tech task: Bump I18n gem to 1.7.1.

Additional Context

This change in I18n ruby-i18n/i18n#503 breaks our lookup for one/many when there is also a nested hash.

Account.model_name.human was returning the hash {:one=>"Payment Source", :other=>"Payment Sources", :owner=>"Owner", :statuses=>{:active=>"Active", :suspended=>"Suspended"}}.

Cleaning this up seemed simpler than trying to dig in to I18n.

This change in I18n ruby-i18n/i18n#503 breaks our lookup for one/many when there is also a nested hash.

`Account.model_name.human` was returning the hash `{:one=>"Payment Source", :other=>"Payment Sources", :owner=>"Owner", :statuses=>{:active=>"Active", :suspended=>"Suspended"}}`.

Cleaning this up seemed simpler than trying to dig in to I18n.
@jhanggi jhanggi merged commit 8d6fb9d into master Jan 9, 2020
@jhanggi jhanggi deleted the i18n_1.7.1 branch January 9, 2020 16:17
@jhanggi
Copy link
Contributor Author

jhanggi commented Jan 13, 2020

Looks like this issue was found and possibly fixed upstream. ruby-i18n/i18n#510

I still think the cleanup is good; I'm not sure those locales should be nested under activerecord anyways.

jhanggi added a commit that referenced this pull request Jan 22, 2020
# Release Notes

"Manage Journals" got reverted to "Manage Journal". Add the "s" back on.

# Additional Context

Looks like it was broken by #2152 because we didn't have a journal translation/pluralization in the locales. It was using `model.human_name.pluralize` before; now it's using `model.human_name(count: :many)`.
joshea0 pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Mar 18, 2020
This change in I18n ruby-i18n/i18n#503 breaks our lookup for one/many when there is also a nested hash.

`Account.model_name.human` was returning the hash `{:one=>"Payment Source", :other=>"Payment Sources", :owner=>"Owner", :statuses=>{:active=>"Active", :suspended=>"Suspended"}}`.

Cleaning this up seemed simpler than trying to dig in to I18n.
joshea0 pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Mar 18, 2020
# Release Notes

"Manage Journals" got reverted to "Manage Journal". Add the "s" back on.

# Additional Context

Looks like it was broken by tablexi#2152 because we didn't have a journal translation/pluralization in the locales. It was using `model.human_name.pluralize` before; now it's using `model.human_name(count: :many)`.
chrixp pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Oct 21, 2020
This change in I18n ruby-i18n/i18n#503 breaks our lookup for one/many when there is also a nested hash.

`Account.model_name.human` was returning the hash `{:one=>"Payment Source", :other=>"Payment Sources", :owner=>"Owner", :statuses=>{:active=>"Active", :suspended=>"Suspended"}}`.

Cleaning this up seemed simpler than trying to dig in to I18n.
chrixp pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Oct 21, 2020
# Release Notes

"Manage Journals" got reverted to "Manage Journal". Add the "s" back on.

# Additional Context

Looks like it was broken by tablexi#2152 because we didn't have a journal translation/pluralization in the locales. It was using `model.human_name.pluralize` before; now it's using `model.human_name(count: :many)`.
joshea0 pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Oct 23, 2020
This change in I18n ruby-i18n/i18n#503 breaks our lookup for one/many when there is also a nested hash.

`Account.model_name.human` was returning the hash `{:one=>"Payment Source", :other=>"Payment Sources", :owner=>"Owner", :statuses=>{:active=>"Active", :suspended=>"Suspended"}}`.

Cleaning this up seemed simpler than trying to dig in to I18n.
joshea0 pushed a commit to SquaredLabs/nucore-uconn that referenced this pull request Oct 23, 2020
# Release Notes

"Manage Journals" got reverted to "Manage Journal". Add the "s" back on.

# Additional Context

Looks like it was broken by tablexi#2152 because we didn't have a journal translation/pluralization in the locales. It was using `model.human_name.pluralize` before; now it's using `model.human_name(count: :many)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants