enableByteConverterLite function
void
enableByteConverterLite()
Enable a lightweight, no-intl number formatter for humanized output.
This adapter provides localized decimal and grouping separators for a small set of common locales without depending on the intl package. It respects:
- locale: language code, with base-locale fallback (e.g., fr-FR -> fr)
- minimumFractionDigits / maximumFractionDigits
- useGrouping (thousands separators)
Supported base locales: en, de, fr, es, pt, ja, zh, ru. Unknown locales fall back to English (en).
Implementation
void enableByteConverterLite() {
registerHumanizeNumberFormatter(_LiteHumanizeNumberFormatter().format);
}