core icon indicating copy to clipboard operation
core copied to clipboard

feat: google translate api support

Open ghost opened this issue 6 years ago • 0 comments

const translate = require('google-translate-api');

translate('Ik spreek Engels', {to: 'en'}).then(res => { console.log(res.text); //=> I speak English console.log(res.from.language.iso); //=> nl }).catch(err => { console.error(err); });

inside the translate method use a single string...how can i adopt this method for a component

ghost avatar Nov 14 '19 10:11 ghost