Jack Daniel
Jack Daniel

Reputation: 2467

Grails i18n messages in html tags

how i can use i18n messages in html's input tag? for example:

<input type="text" name="username" placeholder="${message(code:'placeholder.username')}"

to show placeholder text in several langs.

Upvotes: 0

Views: 854

Answers (1)

Sergei Shushkevich
Sergei Shushkevich

Reputation: 1376

<input type="text" name="username" placeholder="${message(code: 'placeholder.username')}">

Upvotes: 2

Related Questions