next-google-translate-widget
Version:
A simple Next.js/React component for integrating Google Translate Widget with customizable language options.
24 lines (21 loc) • 707 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
declare global {
interface Window {
googleTranslateElementInit: () => void;
google?: {
translate?: {
TranslateElement: new (options: {
pageLanguage: string;
includedLanguages?: string;
layout?: unknown;
}, element: string) => void;
};
};
}
}
interface GoogleTranslateProps {
pageLanguage?: string;
includedLanguages?: string;
}
declare const GoogleTranslate: ({ pageLanguage, includedLanguages, }: GoogleTranslateProps) => react_jsx_runtime.JSX.Element;
export { GoogleTranslate as default };