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
Hi @sbarany,
Welcome back to Google Cloud Community
Cloud Translation enables your websites and applications to dynamically translate text programmatically through an API. Translation uses a Google pre-trained or a custom machine learning model to translate text. By default, Translation uses a Google pre-trained Neural Machine Translation (NMT) model, which Google updates on semi-regular cadence when more training data or better techniques become available.
Here are some references that might help you.
Cloud Translation
https://cloud.google.com/translate/docs/overview
Glossary stopwords
https://cloud.google.com/translation-hub/docs/admin-glossary-stopwords
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |