# intl (option)

Enables Intl.NumberFormat (opens new window) and Intl.DateTimeFormat (opens new window) for the cell text formatting.

import { intl, format } from '@activewidgets/options';

const options = [

    intl('en-US'),

    format('money', {style: 'decimal', minimumFractionDigits: 2, maximumFractionDigits: 2}),
    format('short-date', {year: 'numeric', month: 'short', day: 'numeric'})
];

// ...

const columns = [
    {
        field: 'order_total',
        format: 'money'
    },
    {
        field: 'order_date',
        format: 'short-date'
    }
];