-
Notifications
You must be signed in to change notification settings - Fork 86
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
Error with default locale not :en #219
Comments
i triggered that adding: that here: i had that in my app and wanted to understand what was happening XD |
Do you mean |
Maybe it'd be more helpful to see the whole backtrace of the error in your app 🤔 |
Same error over here:
|
@guizaols ahhh, I see the problem now. I'll fix it shortly. Thank you! |
Otherwise, the `with_locale` block will try to set back any locale set by the host app, which might or might not be :en, leading to an `I18n::InvalidLocale` error. Addresses #219.
I think this should fix it: #220. Would you mind trying out that branch and see if it works for you? I'll ship a new hotfix version if so. |
@rosa This fix worked! |
Awesome, thanks so much for confirming! I'll ship version 1.0.1 with it shortly. |
Otherwise, the `with_locale` block will try to set back any locale set by the host app, which might or might not be :en, leading to an `I18n::InvalidLocale` error. Addresses #219.
Thanks a lot! |
Thanks to you and @baldarn for reporting, and sorry for the trouble. I've just published v1.0.1 🙏 |
hello,
i have default locale as
:it
. i have this error when accessing thejobs
page:i tried monkeypatching the
lib/mission_control/jobs/i18n_config.rb
withand works, do you think there is a better way to achieve this? maybe fallbacking to
:en
locale if another locale is thereThe text was updated successfully, but these errors were encountered: