Created
November 11, 2023 03:26
-
-
Save 1mehdifaraji/f2333b28d93d53dc15fdaa6c4cd23e94 to your computer and use it in GitHub Desktop.
Persian price toLocaleString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const toLocaleString = ( | |
num: number, | |
options?: Intl.NumberFormatOptions | |
) => num.toLocaleString("fa-IR", options).replace(/\٬/g, ","); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment