(countryCode?: string)
| 7 | * @returns default locale, or en if not found |
| 8 | */ |
| 9 | export function defaultLocale(countryCode?: string): string { |
| 10 | countryCode = canonicalizeCountryCode(countryCode) |
| 11 | return ( |
| 12 | (countryCode && countryCode in data && data[countryCode as 'CN']) || 'en' |
| 13 | ) |
| 14 | } |
no test coverage detected