The filter can be used in our template for the product as follows:
<h3>{{ product['price']|format_currency }}</h3>
The preceding code will yield the result shown in the following screenshot: