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
§
unit?: LocaleUnit
[src]The unit to format
§
width?: LocaleWidth
[src]The width to use formatting the value, defines how short or long the formatted string might be.