How to use the @vitalets/google-translate-api function in @vitalets/google-translate-api

To help you get started, we’ve selected a few @vitalets/google-translate-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Janglee123 / eplee / src / renderer / components / Reader / BubleMenu.vue View on Github external
translateText() {
			try{
				translate(this.text, { to: this.translateTo }).then(res => {
					this.translatedText = res.text;
      	});
			}catch(e){
				console.error(e);
			}
    },
github ant-tool / atool-l10n / src / plugins / google.js View on Github external
async function words(q, params) {
  return translate(q, { ...params })
    .then(res => res.text)
    .catch(err => log.error(err));
}

@vitalets/google-translate-api

A free and unlimited API for Google Translate

MIT
Latest version published 12 months ago

Package Health Score

64 / 100
Full package analysis