regionist
Version:
Guesses the user's regional parameters on-device.
13 lines (12 loc) • 422 B
TypeScript
export declare const regionist: {
match: typeof match;
guess: typeof guess;
};
export declare function match(list: string[], fallback?: string): string | undefined;
export declare function guess(global?: (Window & typeof globalThis) | undefined): RegionistGuess;
export interface RegionistGuess {
preferredLanguage?: string;
preferredLocale?: string;
timezone?: string;
timezoneCountry?: string;
}