My site has no php (yet), only HTML and js. The following 3 extra lines on a page insert the functionality for the visitor (with a flag) to convert the page to other languages.
<div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'hu'}, 'google_translate_element'); } </script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
This free service works quite well except with some names. I have collected a table of proper translations and would like to use that as a glossary. Please help me to modify the code. A GCloud project and the Translate API is already created, but I did not find how to use them. TIA
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |