(options?: Intl.NumberFormatOptions)
| 1 | export function useNumberFormatter(options?: Intl.NumberFormatOptions) { |
| 2 | const { locale } = useI18n() |
| 3 | |
| 4 | return computed(() => new Intl.NumberFormat(locale.value, options)) |
| 5 | } |
| 6 | |
| 7 | export const useCompactNumberFormatter = () => |
| 8 | useNumberFormatter({ |
no outgoing calls
no test coverage detected