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

Rails 7 can't modify frozen Array #5

Open
DevHachi opened this issue Oct 14, 2022 · 0 comments
Open

Rails 7 can't modify frozen Array #5

DevHachi opened this issue Oct 14, 2022 · 0 comments

Comments

@DevHachi
Copy link

DevHachi commented Oct 14, 2022

We are currently upgrading from rails 6.1.0 to rails 7.0.4 and discovered this error.

FrozenError: can't modify frozen Array: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
from .../gems/dry_i18n-1.0.1/lib/dry_i18n.rb:13:in `block in translate'

This happens for I18n.t('date.abbr_day_names') and for I18n.l(DateTime.current, format: '%B %Y')

Here is the yml file, to reproduce the error.

en:
  date:
    abbr_day_names:
    - Sun
    - Mon
    - Tue
    - Wed
    - Thu
    - Fri
    - Sat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant