Skip to content

API reference / @localizer/format-number / SingularUnit

Type Alias: SingularUnit

SingularUnit = "acre" | "bit" | "byte" | "celsius" | "centimeter" | "day" | "degree" | "fahrenheit" | "fluid-ounce" | "foot" | "gallon" | "gigabit" | "gigabyte" | "gram" | "hectare" | "hour" | "inch" | "kilobit" | "kilobyte" | "kilogram" | "kilometer" | "liter" | "megabit" | "megabyte" | "meter" | "microsecond" | "mile" | "mile-scandinavian" | "milliliter" | "millimeter" | "millisecond" | "minute" | "month" | "nanosecond" | "ounce" | "percent" | "petabyte" | "pound" | "second" | "stone" | "terabit" | "terabyte" | "week" | "yard" | "year"

Defined in: unit.ts:25

A subset of the CLDR units explicitly sanctioned by the ECMA-402 specification

See

https://tc39.es/ecma402/#table-sanctioned-single-unit-identifiers