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