enableByteConverterIntl function
Enable number formatting for byte humanization using the intl package.
When enabled, humanized numbers are formatted using the provided
numberFormatFactory per locale. If not supplied, a sensible default
decimal pattern is used. Call disableByteConverterIntl to revert to the
built-in non-localized formatter.
Implementation
void enableByteConverterIntl({NumberFormatFactory? numberFormatFactory}) {
registerHumanizeNumberFormatter(
_IntlHumanizeNumberFormatter(
numberFormatFactory ?? _defaultDecimalPattern,
).format,
);
}