heartcombo / simple_form

Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
http://blog.plataformatec.com.br/tag/simple_form
MIT License
8.21k stars 1.31k forks source link

Hints don't work on the namespaced model #1828

Closed jonas-jasas closed 2 months ago

jonas-jasas commented 8 months ago

Environment

Current behavior

Hints don't work for the namespaced models.

en:
  simple_form:
    hints:
      myns/mymodel:
        email: Some text
nicowenterodt commented 5 months ago

According to the docs this should work like this:

It should be noted that translations for labels, hints and placeholders for a namespaced model, e.g. Admin::User, should be placed under admin_user, not under admin/user. This is different from how translations for namespaced model and attribute names are defined:

nashby commented 2 months ago

@nicowenterodt thanks, that's correct!