Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LocalizeFnOptions

The LocalizeFn function options.

interface LocalizeFnOptions {
context?: "formatting" | "standalone";
unit?: LocaleUnit;
width?: LocaleWidth;
}

§Properties

§
context?: "formatting" | "standalone"
[src]

The context where the formatted value is used - standalone: the result should make grammatical sense as is and formatting: the result is a part of the formatted string. See: https://date-fns.org/docs/I18n-Contribution-Guide

§

The unit to format

§

The width to use formatting the value, defines how short or long the formatted string might be.