mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
10 lines
309 B
TypeScript
10 lines
309 B
TypeScript
/**
|
|
* The `formatNumber` utility localizes a number into a string with the
|
|
* appropriate punctuation based on the provided locale otherwise will default to the users locale.
|
|
*
|
|
* @example
|
|
* formatNumber(1234);
|
|
* // 1,234
|
|
*/
|
|
export default function formatNumber(number: number, locale?: string): string;
|