react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
13 lines • 389 B
TypeScript
import { compact } from '@intlayer/core';
/**
* 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: () => (...args: Parameters<typeof compact>) => string;
//# sourceMappingURL=useCompact.d.ts.map