html - html 标签中的 Grails i18n 消息

标签 html grails internationalization

我如何在 html 的输入标签中使用 i18n 消息?例如:

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

以多种语言显示占位符文本。

最佳答案

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

关于html - html 标签中的 Grails i18n 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13072653/

相关文章:

css - 应用程序缓存错误事件 : Manifest fetch failed (404) why?

hibernate - Grails事务问题IllegalStateException key BasicDataSource TransactionSynchronizationManager.bindResource的已有值

django - 如何在django中切换L10N

grails - 在grails中的多个表中搜索多个值的最佳方法是哪种?插件还是动态查找器?

Grails:如何使用当前本地化获取 i18 消息?

javascript - 如何使用react-i18next通过不同的javascript文件更改语言?

html - 将文本区域视为输入字段?

小于包含它的 div 的 HTML 输入字段边框

php+mysql评论系统

grails - 如何从 grails 默认 gsp 编码中排除插件?