Sha256: 8ff239c7e59bd8e6b3cf72946ec6eab1022e25482a501775085ae63884b676e4

Contents?: true

Size: 1.76 KB

Versions: 26

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) 2020 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

26 entries across 26 versions & 1 rubygems

Version Path
j1-template-2021.0.0 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.25 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.24 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.22 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.21 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.20 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.19 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.18 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.17 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.16 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.15 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.14 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.13 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.12 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.11 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.10 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.9 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.8 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.7 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2020.0.6 _includes/themes/j1/modules/connectors/translators/google-translator.html