Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

google.translate.TranslateElement part of page

google.language.translate("Hello world", "en", "es", function(result) {
  if (!result.error) {
    var container = document.getElementById("translation");
    container.innerHTML = result.translation;
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #part #page
ADD COMMENT
Topic
Name
8+2 =