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

Hints don't work on the namespaced model #1828

Open
jonas-jasas opened this issue Jan 11, 2024 · 1 comment
Open

Hints don't work on the namespaced model #1828

jonas-jasas opened this issue Jan 11, 2024 · 1 comment

Comments

@jonas-jasas
Copy link

jonas-jasas commented Jan 11, 2024

Environment

  • Ruby 3.2.1
  • Rails 7.0.8
  • Simple Form 5.3.0

Current behavior

Hints don't work for the namespaced models.

en:
  simple_form:
    hints:
      myns/mymodel:
        email: Some text
@nicowenterodt
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants