import { built_default } from "../config/dist/esm/built.mjs";
import { CachedIntl } from "../utils/intl.mjs";

//#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 CachedIntl.NumberFormat(options?.locale ?? built_default?.internationalization?.defaultLocale, options).format(Number(value));

//#endregion
export { number };
//# sourceMappingURL=number.mjs.map