UNPKG

react-intlayer

Version:

Easily internationalize i18n your React applications with type-safe multilingual content management.

14 lines 423 B
/** * React client hook that provides a compact number formatter * bound to the current application locale. * * @example * ```tsx * const formatCompact = useCompact(); * formatCompact(1500); // "1.5K" * ``` */ export declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & { locale?: import("intlayer").LocalesValues; }) => string; //# sourceMappingURL=useCompact.d.ts.map