Unit.formatAbbr()method
formatAbbr(options?: FormatOptions): string
Format the short name of this unit on its own, e.g. km or min, with no number.
- Uses
Intl.NumberFormatif this is a supported unit, so the name is translated. - Falls back to this unit's
abbroption, then to its key.