import { useTranslation } from '../../../.external/lib/react-i18next'; export interface LangContextValue { /** The current language code (e.g., 'en', 'de'). */ currentLanguage: string; /** Function to change the current language. */ setLanguage: (lng: string) => void; /** The translation object from `react-i18next`, same as calling `useTranslation`. */ translation: ReturnType; /** `useTranslation` from `react-i18next`. */ useTranslation: typeof useTranslation; /** The language code stored in local storage. */ localStorageLanguage: string; /** Function to set the language code in local storage. */ setLocalStorageLanguage: (lng: string) => void; }