const require_built = require('../config/dist/esm/built.cjs');
const require_intl = require('../utils/intl.cjs');

//#region ../react-intlayer/dist/esm/@intlayer/core/dist/esm/formatters/number.mjs
/**
* Formats a numeric value using locale-aware formatting.
*
* @example
* number({ value: 123456.789 }); // "123,456.789"
* number({ value: "1000000", locale: Locales.FRENCH }); // "1 000 000"
*/
const number = (value, options) => new require_intl.CachedIntl.NumberFormat(options?.locale ?? require_built.built_default?.internationalization?.defaultLocale, options).format(Number(value));

//#endregion
exports.number = number;
//# sourceMappingURL=number.cjs.map