You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I figured out that the translation doesn't work when there's a validation error on the model attribute.
When I set config.i18n.default_locale = :en in application.rb it shows the error message in english however when i change the language the error message doesnt update.
I'm using activeadmin 2.9 and formtastic 4.0.
For changing the language I'm setting a method config.before_action :set_admin_locale and
def set_admin_locale
I18n.locale = current_admin_user && current_admin_user&.language || I18n.default_locale
end
The text was updated successfully, but these errors were encountered:
Hello.
I figured out that the translation doesn't work when there's a validation error on the model attribute.
When I set
config.i18n.default_locale = :en
in application.rb it shows the error message in english however when i change the language the error message doesnt update.I'm using activeadmin 2.9 and formtastic 4.0.
For changing the language I'm setting a method
config.before_action :set_admin_locale
andThe text was updated successfully, but these errors were encountered: