export var convertToLocaleString = function (data, culture) {
    if (!data) {
        return data;
    }
    culture = culture || undefined;
    if (typeof data === 'number') {
        return data.toLocaleString(culture);
    }
    else if (typeof data === 'string' && !window.isNaN(Number(data))) {
        var num = Number(data);
        return num.toLocaleString(culture);
    }
    else if (data instanceof Date) {
        return data.toLocaleDateString(culture);
    }
    return data;
};
//# sourceMappingURL=locale-util.js.map