@redocly/theme
Version:
Shared UI components lib
12 lines (11 loc) • 466 B
TypeScript
import type { L10nConfig } from '../types/hooks';
export type UseLanguagePickerResult = {
currentLocale: L10nConfig['locales'][number] | undefined;
locales: L10nConfig['locales'];
getLocaleUrl: (value: string) => string;
/**
* @deprecated Use `getLocaleUrl` to build the URL for the target locale, then pass it to `<Link>`.
*/
setLocale: (value: string) => void;
};
export declare function useLanguagePicker(): UseLanguagePickerResult;