export class BasicFormatter {
    constructor(locale) {
        this.locale = locale;
    }
    format(value) {
        let formattedValue = String(value);
        if (typeof value === 'number') {
            formattedValue = new Intl.NumberFormat(this.locale).format(value);
        }
        else if (new Date(value).getTime()) {
            formattedValue = new Intl.DateTimeFormat(this.locale).format(new Date(value));
        }
        return {
            value: formattedValue,
        };
    }
}
