core
core copied to clipboard
feat: google translate api support
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