Sha256: ba07cbe3c364d0876c9fa762ce6d2b6aee04d831b7356c63ee65aa86d5cdb470

Contents?: true

Size: 1.76 KB

Versions: 49

Compression:

Stored size: 1.76 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/modules/connectors/translators/google-translator.html
 #  Support of multiple languages by Google Translator for J1 Template
 #
 #  Product/Info:
 #  http://jekyll.one
 #
 #  Copyright (C) 2021 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 # Test data:
 #  liquid_var:  {{ liquid_var | debug }}
 # -----------------------------------------------------------------------------
{% endcomment %}

{% comment %} Liquid procedures
-------------------------------------------------------------------------------- {% endcomment %}

{% comment %} Variables
-------------------------------------------------------------------------------- {% endcomment %}


{% comment %} Main
-------------------------------------------------------------------------------- {% endcomment %}
<!-- Google Translator, NOT shown by default -->
<div id="google_translate_element" class="ml-5 mr-5 mb-4" style="display: none;"></div>

  <script type="text/javascript">
    var logger;
    
    function googleTranslateElementInit() {
      logger = log4javascript.getLogger('j1.translator');
      logger.info('initialize translator: google');
      //includedLanguages: 'de,fr,es',
      //layout: google.translate.TranslateElement.InlineLayout.SIMPLE
      new google.translate.TranslateElement({
        pageLanguage: 'en'        
      }, 
      'google_translate_element');
    }
  </script>
    
  <script type="text/javascript"
    src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
  </script>

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
j1-template-2021.2.3 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.2.2 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.2.1 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.2.0 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.29 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.28 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.27 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.26 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.25 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.24 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.23 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.22 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.21 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.20 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.19 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.18 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.17 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.16 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.14 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.1.13 _includes/themes/j1/modules/connectors/translators/google-translator.html