-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
can't modify frozen Hash: {} (FrozenError) #613
Comments
@lavrovdv Thank you for filing this issue. How can I replicate this issue on a new application myself? Could you please provide exact steps to reproduce. |
I got this error in rails app in production env.
|
I'm currently unable to reproduce this issue in any Rails application of mine. Could you please create a Rails app repo on GitHub and share it here? |
I am having the exact same error with the same locale; persists in production, but can't reproduce in the local environment so far. It started after the update to Rails 6.0.4.6 which updated i18n to 1.9.1. Mine dies on things as simple as
|
Freezing i18n to Now, both me and Dmitry @lavrovdv seem to have the same locale, Unfortunately, I have not been able to pinpoint the issue to the gem exactly: everything works in my local environment, but dies in production. The gem does not hack or overload You can see that the datetime (as well as plulralization) is actually a lambda: https://github.com/yaroslav/russian/blob/master/lib/russian/locale/datetime.rb, which is important for Cyrillic languages and was working more or less as intended for almost 11 years now. |
Also having the same issue with date localization after updating to 1.9.1. Seems #622 fixes the problem. |
I18n 1.10.0 has just been released, and I think it'll fix this problem. |
Default parameter
options = EMPTY_HASH
in methoddef resolve(locale, object, subject, options = EMPTY_HASH)
is a frozen Hash,options.delete(:fallback_in_progress)
raisecan't modify frozen Hash: {} (FrozenError)
i18n/lib/i18n/backend/fallbacks.rb
Line 72 in a1dc424
The text was updated successfully, but these errors were encountered: