nuxt-google-translate
Version:
A simple Nuxt module that integrates the Google Translate widget into your Nuxt.js application, allowing seamless multilingual support without requiring an API key.
27 lines (26 loc) • 831 B
TypeScript
/**
* Composable to access Google Translate functionality
* @returns {object} An object containing Google Translate state and methods
*/
export declare function useGoogleTranslate(): {
/**
* Ref containing the currently active language
* @type {ComputedRef<string>}
*/
activeLanguage: import("vue").ComputedRef<any>;
/**
* Array of supported language codes
* @type {ComputedRef<readonly string[]>}
*/
supportedLanguages: import("vue").ComputedRef<any>;
/**
* Function to set the active language
* @param {string} lang - The language code to set
*/
setLanguage: (lang: string) => any;
/**
* Ref indicating whether the Google Translate script has been loaded
* @type {ComputedRef<boolean>}
*/
isLoaded: import("vue").ComputedRef<any>;
};