Pagy does not fall back to English if locale is not supported #868
JasonBarnabe
started this conversation in
Feature Requests
Replies: 2 comments
-
|
Thank you for your request. This is a feature that should exist, and will be added. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Implemented in 344b319. Released with 43.2.8 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Typically with gems supporting i18n, if a translation file is not available for the selected locale, then English is used. With pagy, if the locale is not available,
Errno::ENOENTis raised.pagy should act like other gems and fall back to English if the translation file is not available. If this is not desirable, then at least this difference should be noted in the documentation (possibly as a reason to use
Pagy.translate_with_the_slower_i18n_gem!).Code example
Beta Was this translation helpful? Give feedback.
All reactions