UNPKG

language-management-lib

Version:

A TypeScript library for managing language translations in applications with URL parameter support.

6 lines (5 loc) 431 B
export declare const isValidLanguageKey: (key: string, languages: Record<string, any>) => boolean; export declare const validateLanguageKey: (key: string, languages: Record<string, any>) => boolean; export declare const formatTranslation: (translation: string, params?: Record<string, any>) => string; export declare const getLanguageFromURL: () => string | null; export declare const setLanguageInURL: (language: string) => void;