-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Move pagination translations to active_admin scope #8218
Move pagination translations to active_admin scope #8218
Conversation
4dbafe8
to
da92324
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Feel free to remove the .html_safe
if you want. I can release beta4 once you merge.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8218 +/- ##
=======================================
Coverage 99.10% 99.10%
=======================================
Files 140 140
Lines 4017 4017
=======================================
Hits 3981 3981
Misses 36 36 ☔ View full report in Codecov by Sentry. |
4dbafe8
to
8079c37
Compare
Active Admin uses the Kaminari gem for pagination, which may also be used by the host application. Moving the translations from `views.pagination` to `active_admin.pagination` prevents potential conflicts. Also remove `html_safe`, since Active Admin will use translations just as a fallback for screen readers Fix activeadmin#8215
8079c37
to
e714360
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! ❤️
This was introduced in #8218 but we forgot to update the Upgrading guide.
Active Admin uses the Kaminari gem for pagination, which may also be used by the host application. Moving the translations from
views.pagination
toactive_admin.pagination
prevents potential conflicts.Fix #8215