I have an HTML page, and I would use Google Translate to translate only a div into my page.
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: it }, google_translate_element );
}
</script><script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
With this code, google translate everything in the page. But if I wanna translate only a piece. How I can do it?
Thanks!