0

How to translate English langauge text to a foreign language with google translator via JavaScript without showing a google toolbar?

0

3 Answers 3

3

Check this page from Google Language API.

Sign up to request clarification or add additional context in comments.

Comments

0

Caution about Google API!

You can send no more then 5000 symbols for translation. And after some requests (about 500) you will be simply banned.

Good luck !

Comments

0

add meta tag is header

<meta name="google-translate-customization" content="b6703fd8b1d84044-bd4dd2611d59f8dc-g6a8fe920a18c8f60-d"></meta>

add belo code where do you want

<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.