org.scalajs.dom.intl

Type members

Classlikes

@native @JSGlobal("Intl.Collator") @JSType
class Collator(locales: UndefOr[String | Array[String]], options: UndefOr[CollatorOptions]) extends Object

The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison.

The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison.

@JSType
trait CollatorOptions extends Object
Companion:
object
@native @JSGlobal("Intl.DateTimeFormat") @JSType
class DateTimeFormat(locales: UndefOr[String | Array[String]], options: UndefOr[DateTimeFormatOptions]) extends Object

The Intl.DateTimeFormat object is a constructor for objects that enable language sensitive date and time formatting.

The Intl.DateTimeFormat object is a constructor for objects that enable language sensitive date and time formatting.

@JSType
trait DateTimeFormatOptions extends Object
Companion:
object
@native @JSGlobal("Intl.NumberFormat") @JSType
class NumberFormat(locales: UndefOr[String | Array[String]], options: UndefOr[NumberFormatOptions]) extends Object

The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting.

The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting.

@JSType
trait NumberFormatOptions extends Object

The following properties fall into two groups:

The following properties fall into two groups:

  • minimumIntegerDigits, minimumFractionDigits, and maximumFractionDigits in one group,
  • minimumSignificantDigits and maximumSignificantDigits in the other. If at least one property from the second group is defined, then the first group is ignored.
Companion:
object

Deprecated classlikes

@deprecated("all the members of CollatorOptions are deprecated", "2.0.0")
Companion:
class
Deprecated
@deprecated("all members of DateTimeFormatOptions are deprecated", "2.0.0")
Companion:
class
Deprecated
@deprecated("all the members of NumberFormatOptions are deprecated", "2.0.0")
Companion:
class
Deprecated