UNPKG

saltfish

Version:

An interactive video-guided tour system for web applications

19 lines 956 B
/** * Detects the user's language from the browser and normalizes it * Normalizes language codes (e.g., sv-FI -> sv, en-US -> en) * @returns The normalized language code or undefined if not detected */ export declare function detectUserLanguage(): string | undefined; /** * Normalizes a language code by removing regional identifiers * @param language - The language code to normalize (e.g., 'sv-FI', 'en-US') * @returns The normalized language code (e.g., 'sv', 'en') */ export declare function normalizeLanguageCode(language: string): string; /** * Processes language configuration, handling 'auto' detection and normalization * @param configLanguage - The language setting from config ('auto' or a language code) * @returns The final language code to use (normalized and detected if needed) */ export declare function processLanguageConfig(configLanguage?: string | 'auto'): string | undefined; //# sourceMappingURL=languageDetector.d.ts.map