@lion/localize
Version:
The localization system helps to manage localization data split into locales and automate its loading
12 lines (11 loc) • 477 B
TypeScript
/**
* @desc Returns month names for locale
* @param {Object} [options]
* @param {string} [options.locale] locale
* @param {"long" | "numeric" | "2-digit" | "short" | "narrow"} [options.style=long] long, short or narrow
* @returns {string[]} like: ['January', 'February', ...etc].
*/
export function getMonthNames({ locale, style }?: {
locale?: string | undefined;
style?: "short" | "long" | "narrow" | "numeric" | "2-digit" | undefined;
} | undefined): string[];