/** * This method ensures that a locale is valid and supported by browser, and returns it if it is. * * It used Intl.DateTimeFormat.supportedLocalesOf to decide whether the locale is valid or not. * Intl.DateTimeFormat.supportedLocalesOf takes a locale (or a list of locales) and returns: * - an array with the locale if it's valid * - an empty array if it's valid but not supported * - throws an error if it's not valid * @param locale locale to validate and return * @returns the locale if it's valid, otherwise undefined */ declare const getValidLocale: (requestedLocale?: string) => string | undefined; export default getValidLocale;