Variable RelativeTimeFormat

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

Type declaration

  • supportedLocalesOf:function
    • Returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.

      Parameters

      Returns string[]

      An array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.

      MDN.