UNPKG

react-weglot

Version:

You can use this component to easily integrate Weglot Translation Widget into ReactJS or NextJS projects. TypeScript is also supported. # Usage ## Setting Up Weglot - Login to [Weglot](https://www.weglot.com/) - [Setup translation](https://support.weglot.

2 lines (1 loc) 164 B
export declare const useWeglot: (api_key: string, defaultLanguage?: string) => readonly [string, import("react").Dispatch<import("react").SetStateAction<string>>];