-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Resource translation_key
is being disregarded with Rails 8.0.1
#3538
Comments
Hey @jpawlyn. We are looking into this. |
Thanks @adrianthedev. Just came across rails/rails#53640. Looks as if it might be related ? |
Hi @jpawlyn could you please include a way to reproduce it? I updated rails on our dummy app to 8.0.1 configured the pt locale file as: ---
pt:
avo:
resource_translations:
product: "Produto"
user:
zero: 'usuarios'
one: 'usuario'
other: 'usuarios' and visited http://localhost:3030/admin/resources/users?set_locale=pt On my side the translations are applied correctly, am I missing something? I committed the reproduction code here. |
@Paul-Bob Nice one. I changed the |
Reproduced, thank you! |
There has been a behavioral change in the internals of Rails' I've opened an issue on Rails to gain clarity on the appropriate steps for us to take. |
Describe the bug
The upgrade from Rails 8.0.0 to 8.0.1 has caused resource translation keys to be ignored. This is occurring for Avo 3.15.1, 3.15.2 and 3.15.3. Looking at the Rails changelog perhaps rails/rails#53640 has caused this change in behaviour ?
Field translations remain working as expected.
Reproduction repository for the bug
Happy to provide this if required.
Steps to use in the reproduction repository
Steps to reproduce the behavior:
Expected behavior & Actual behavior
System configuration
Avo version: 3.15.1 - 3
Rails version: 8.0.1
Ruby version: 3.3.6
License type:
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
This is with Rails 8.0.0 showing the correct translations:
And this is with Rails 8.0.1 showing no translations for the menu items and create resource button model name:
Additional context
Impact
Urgency
The text was updated successfully, but these errors were encountered: