@date-vir/duration
Version:
Durations units an utils for date-vir.
26 lines (25 loc) • 462 B
TypeScript
/**
* The current user's default locale, useful for formatting purposes.
*
* @category Util
*/
export declare const userLocale: string;
/**
* Options for setting locale for string formatting purposes.
*
* @category Internal
*/
export type LocaleOptions = {
/**
* Set the locale string.
*
* @example
*
* - 'en-US' -'en'
* - 'de'
*
*
* @default the user's locale
*/
locale?: string | undefined;
};