Variable Segmenter
Segmenter: {
prototype: Intl.Segmenter;
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): string[];
new (locales?: LocalesArgument, options?: SegmenterOptions): Intl.Segmenter;
}
prototype: Intl.Segmenter;
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): string[];
new (locales?: LocalesArgument, options?: SegmenterOptions): Intl.Segmenter;
}
Type declaration
- new (locales?, options?): Intl.Segmenter
Parameters
Optional
locales: LocalesArgumentA string with a BCP 47 language tag, or an array of such strings. For the general form and interpretation of the
locales
argument, see theIntl
page.Optional
options: SegmenterOptionsAn object with some or all options of
SegmenterOptions
.
Returns Intl.Segmenter
Intl.Segmenter object.
MDN.
prototype: Intl.Segmenter
supported
Locales :functionOf - supported
Locales (locales, options?): string[]Of Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
Parameters
- locales: LocalesArgument
A string with a BCP 47 language tag, or an array of such strings. For the general form and interpretation of the
locales
argument, see theIntl
page. Optional
options: Pick<SegmenterOptions, "localeMatcher">
Returns string[]
- locales: LocalesArgument
- supported
Creates a new
Intl.Segmenter
object.