When building HTML templates wiht Thymeleaf template engine, you may end up with a situation where an HTML element needs to have text coming from localization resources, but also it needs to have some additonal child elements which can't be replaced during template rendering. One of the examples …

AngularJS provides currency formatting filter which converts numbers into locale specific currency string e.g. 123.50 number converts to $123.00 for en-US locale or 123,50 € for fr-FR locale. But what to do if I would like to perform currency formatting without decimal (cent) part e.g. $123 …