Resolve messages by default for certain arguments
Closed this issue · 2 comments
mkurz commented
Hi!
I think it would make sense to always lookup certain arguments in the messages.
This would be
'_label
'placeholder
'_text
(for checkboxes)
mkurz commented
Right now I always have to write
'_label -> ctx().messages().at("mykey")
'placeholder -> ctx().messages().at("somelabel")
'_text -> ctx().messages().at("sometext")
It would be nice if the lookup would be done automatically by default in play-bootstrap via ctx().messages().at(...)
.
What do you think?
mkurz commented
So I just have to write instead:
'_label -> "mykey"
'placeholder -> "somelabel"
'_text -> "sometext"
And play-bootstrap resolves the messages automatically