JS Built-ins
IntlRelativeTimeFormatintermediate

RelativeTimeFormat resolvedOptions

πŸ“– Usage Example
const opts = new Intl.RelativeTimeFormat('es').resolvedOptions();
// { locale: 'es', style: 'long', numeric: 'always' }

resolvedOptions() returns the locale and style options in use.

Get resolved options from Intl.RelativeTimeFormat.

πŸ’‘ Hints (1)
  • β€’ Use .resolvedOptions()