convertToSupportedLocaleIn(
newLocale: string,
supportedLocalesToCheck: string[] | readonly string[],
): string | undefinedconvertToSupportedLocaleIn(
newLocale: string,
supportedLocalesToCheck: string[] | readonly string[],
): string | undefined
See convertToSupportedLocale
This takes the supported locale array so it can be used outside of the locale system