define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.convertToLocaleString = void 0;
    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;
    };
    exports.convertToLocaleString = convertToLocaleString;
});
//# sourceMappingURL=locale-util.js.map