thymeleaf - th:switch boolean to i18n value
<p>Already I can get messages from the resource bundle in my application, but I need to show the internationalized value from a boolean attribute on a table.</p>

<p>I tried this:</p>

<pre><code>&lt;td th:switch="${boolean}"&gt;
    &lt;span th:if="${boolean} = 'true'" th:text="#{messages.true}"/&gt;
    &lt;span th:if="${boolean} = 'false'" th:text="#{messages.false}"/&gt;
&lt;/td&gt;
</code></pre>

<p>But there was nothing displayed on the table.</p>

<p>What have I gotten wrong?</p>