Fuse Community

Support Intl.NumberFormart to format number or string

does FuseOpen support Intl.NumberFormat API?
if not, how can i format amount (money).

You can use any JavaScript library that does it such as dinero.js, currency.js, currencyformatter.js, etc.

Download the library, include it into the .unoproj file:

    "Includes": [

Add it inside your .UX file:

       var Dinero = require('JavaScript/dinero.js');
       price = Dinero({ amount: 5000, currency: 'EUR' });


Remember to do uno clean to rebuild everything from scratch to be sure that the included file has been loaded into the project.