thymeleaf Localization messages with parameters


Example

Write message in messages.properties

welcome.message=Hello, {0}!

Replace {0} with the user name inside thymeleaf tag

<h3 th:text="#{welcome.message(${some.variable})}">Hello, Placeholder</h3>