UNPKG

regionist

Version:

Guesses the user's regional parameters on-device.

15 lines (13 loc) 452 B
declare const regionist: { match: typeof match; guess: typeof guess; }; declare function match(list: string[], fallback?: string): string | undefined; declare function guess(global?: (Window & typeof globalThis) | undefined): RegionistGuess; interface RegionistGuess { preferredLanguage?: string; preferredLocale?: string; timezone?: string; timezoneCountry?: string; } export { type RegionistGuess, guess, match, regionist };