Variable Segmenter

Segmenter: {
    prototype: Intl.Segmenter;
    supportedLocalesOf(locales, options?) => string[];
    new (locales?, options?): Intl.Segmenter;
}

Type declaration

  • prototype: Intl.Segmenter
  • supportedLocalesOf:function
    • 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: string | string[]

        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 the Intl page.

      • Optional options: Pick<SegmenterOptions, "localeMatcher">

        An object. with some or all possible options.

        MDN

      Returns string[]