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

Not working on available_locales has no 'en' configuration #28

Open
ash-r1 opened this issue Feb 23, 2022 · 1 comment
Open

Not working on available_locales has no 'en' configuration #28

ash-r1 opened this issue Feb 23, 2022 · 1 comment

Comments

@ash-r1
Copy link

ash-r1 commented Feb 23, 2022

I'm using this gem with a non-English product.
I realized this gem crashes without :en on I18n.available_locales like that:

I18n.available_locales = [:ja] # or something excepts :en

It crashes here:

%td= l(object.created_at, format: :long, default: l(object.created_at, format: :long, locale: :en))

error message is:

Showing /home/ash/.anyenv/envs/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rails_admin_history_rollback-1.0.3/app/views/rails_admin/main/history.html.haml where line #41 raised:

:en is not a valid locale
@ciscolive
Copy link

``
d15dd7ff-0e64-478f-a3b3-6dc4401fb928
not working with rails_admin 3.0 ,can not see rollback button

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

2 participants