Skip to main content

Module Intl

Module Intl 

Source

Structs§

Collator
The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison.
CollatorOptions
Options for Intl.Collator and String.prototype.localeCompare.
DateTimeFormat
The Intl.DateTimeFormat object is a constructor for objects that enable language-sensitive date and time formatting.
DateTimeFormatOptions
Options for Intl.DateTimeFormat constructor.
DateTimeFormatPart
A part of the formatted date returned by formatToParts().
DateTimeRangeFormatPart
A part of the formatted date range returned by formatRangeToParts().
DisplayNames
The Intl.DisplayNames object enables the consistent translation of language, region, and script display names.
DisplayNamesOptions
Options for Intl.DisplayNames constructor.
Duration
A duration object used as input to Intl.DurationFormat.format().
DurationFormat
The Intl.DurationFormat object enables language-sensitive duration formatting.
DurationFormatOptions
Options for Intl.DurationFormat constructor.
DurationFormatPart
A part of the formatted duration returned by formatToParts().
ListFormat
The Intl.ListFormat object enables language-sensitive list formatting.
ListFormatOptions
Options for Intl.ListFormat constructor.
ListFormatPart
A part of the formatted list returned by formatToParts().
Locale
The Intl.Locale object is a standard built-in property of the Intl object that represents a Unicode locale identifier.
LocaleMatcherOptions
Options for supportedLocalesOf methods.
NumberFormat
The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting.
NumberFormatOptions
Options for Intl.NumberFormat constructor.
NumberFormatPart
A part of the formatted number returned by formatToParts().
NumberRangeFormatPart
A part of the formatted number range returned by formatRangeToParts().
PluralRules
The Intl.PluralRules object is a constructor for objects that enable plural sensitive formatting and plural language rules.
PluralRulesOptions
Options for Intl.PluralRules constructor.
RelativeTimeFormat
The Intl.RelativeTimeFormat object is a constructor for objects that enable language-sensitive relative time formatting.
RelativeTimeFormatOptions
Options for Intl.RelativeTimeFormat constructor.
RelativeTimeFormatPart
A part of the formatted relative time returned by formatToParts().
ResolvedCollatorOptions
ResolvedDateTimeFormatOptions
Resolved options returned by Intl.DateTimeFormat.prototype.resolvedOptions().
ResolvedDisplayNamesOptions
Resolved options returned by Intl.DisplayNames.prototype.resolvedOptions().
ResolvedDurationFormatOptions
Resolved options returned by Intl.DurationFormat.prototype.resolvedOptions().
ResolvedListFormatOptions
Resolved options returned by Intl.ListFormat.prototype.resolvedOptions().
ResolvedNumberFormatOptions
Resolved options returned by Intl.NumberFormat.prototype.resolvedOptions().
ResolvedPluralRulesOptions
Resolved options returned by Intl.PluralRules.prototype.resolvedOptions().
ResolvedRelativeTimeFormatOptions
Resolved options returned by Intl.RelativeTimeFormat.prototype.resolvedOptions().
ResolvedSegmenterOptions
Resolved options returned by Intl.Segmenter.prototype.resolvedOptions().
SegmentData
Data about a segment returned by the Segments iterator.
Segmenter
The Intl.Segmenter object enables locale-sensitive text segmentation.
SegmenterOptions
Options for Intl.Segmenter constructor.
Segments
The Segments object is an iterable collection of segments of a string.
TextInfo
Text layout information for a locale.
WeekInfo
Week information for a locale.

Enums§

CollatorCaseFirst
Case first option for Intl.Collator.
CollatorSensitivity
Sensitivity for Intl.Collator.
CollatorUsage
Usage for Intl.Collator.
CompactDisplay
Compact display for Intl.NumberFormat.
CurrencyDisplay
Currency display for Intl.NumberFormat.
CurrencySign
Currency sign for Intl.NumberFormat.
DateTimeFormatPartType
Part type for DateTimeFormat.formatToParts().
DateTimeStyle
Date/time style for Intl.DateTimeFormat.
DayFormat
Day format for Intl.DateTimeFormat.
DayPeriodFormat
Day period format for Intl.DateTimeFormat.
DisplayNamesFallback
Fallback for Intl.DisplayNames.
DisplayNamesLanguageDisplay
Language display for Intl.DisplayNames.
DisplayNamesStyle
Style for Intl.DisplayNames.
DisplayNamesType
Type for Intl.DisplayNames.
DurationFormatPartType
The type of a duration format part.
DurationFormatStyle
The style for duration formatting.
DurationTimeUnitStyle
The display style for time duration units (hours, minutes, seconds).
DurationUnitDisplay
The display option for duration units.
DurationUnitStyle
The display style for individual duration units.
EraFormat
Era format for Intl.DateTimeFormat.
HourCycle
Hour cycle for Intl.DateTimeFormat.
ListFormatPartType
Part type for Intl.ListFormat.formatToParts().
ListFormatStyle
Style for Intl.ListFormat.
ListFormatType
Type for Intl.ListFormat.
LocaleMatcher
Locale matching algorithm for Intl constructors.
MonthFormat
Month format for Intl.DateTimeFormat.
NumberFormatNotation
Notation for Intl.NumberFormat.
NumberFormatPartType
Part type for NumberFormat.formatToParts().
NumberFormatStyle
Style for Intl.NumberFormat.
NumericFormat
Hour/minute/second format for Intl.DateTimeFormat.
PluralCategory
Plural category returned by PluralRules.select().
PluralRulesType
Type for Intl.PluralRules (cardinal or ordinal).
RangeSource
Source indicator for range format parts.
RelativeTimeFormatNumeric
Numeric option for Intl.RelativeTimeFormat.
RelativeTimeFormatPartType
Part type for RelativeTimeFormat.formatToParts().
RelativeTimeFormatStyle
Style for Intl.RelativeTimeFormat.
RelativeTimeFormatUnit
Unit for RelativeTimeFormat.format().
RoundingMode
Rounding mode for Intl.NumberFormat.
RoundingPriority
Rounding priority for Intl.NumberFormat.
SegmenterGranularity
Type for Intl.Segmenter.
SignDisplay
Sign display for Intl.NumberFormat.
SupportedValuesKey
Key for Intl.supportedValuesOf().
TimeZoneNameFormat
Time zone name format for Intl.DateTimeFormat.
TrailingZeroDisplay
Trailing zero display for Intl.NumberFormat.
UnitDisplay
Unit display for Intl.NumberFormat.
UseGrouping
Use grouping option for Intl.NumberFormat.
WeekdayFormat
Weekday format for Intl.DateTimeFormat.
YearFormat
Year format for Intl.DateTimeFormat.

Functions§

get_canonical_locales
The Intl.getCanonicalLocales() method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.
supported_values_of
The Intl.supportedValuesOf() method returns an array containing the supported calendar, collation, currency, numbering system, or unit values supported by the implementation.