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

More i18n keys wanted #340

Closed
sbglasius opened this issue Apr 8, 2024 · 0 comments
Closed

More i18n keys wanted #340

sbglasius opened this issue Apr 8, 2024 · 0 comments
Assignees

Comments

@sbglasius
Copy link
Member

When having a class Button with a String title this creates a i18n key of button.title.label

When having a class using multiple Button properties like:

class MetaInfo {
   Button next
   Button cancel
}

the i18n keys generated and looked up are:

metaInfo.next.title.label
button.title.label
metaInfo.cancel.title.label

Then if I have a second class with the same button properties:

class MetaAck {
   Button next
   Button cancel
}

I get:

metaAck.next.title.label
button.title.label
metaAck.cancel.title.label

I would like to have the additional keys:

next.title.label
cancel.title.label

Having the extra key, without the bean-name would be helpful

@sbglasius sbglasius self-assigned this Apr 8, 2024
sbglasius added a commit to sbglasius/grails-fields that referenced this issue Apr 8, 2024
sbglasius added a commit that referenced this issue Apr 8, 2024
Fix #340, added the option to skip the bean-name for bean properties
@sbglasius sbglasius mentioned this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant