Sha256: dbe239229d4a4e1267f65ae069add2379a0d54374c21c2936db0daa42154a517

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/modules/connectors/translators/google-translator.html
 #  Connector for the Google Translator
 #
 #  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 %}
<!-- [INFO   ] [j1.modules.connectors.translation     ] [ place callback for the Google Translator API ] -->
<script>
  function googleTranslateElementInit() {
    var gtAPI = new google.translate.TranslateElement({
      pageLanguage: 'en',
      layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT
    },
    'google_translate_element');
    j1.adapter.translator.postTranslateElementInit(gtAPI);
  }
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
j1-template-2021.2.10 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.2.9 _includes/themes/j1/modules/connectors/translators/google-translator.html
j1-template-2021.2.8 _includes/themes/j1/modules/connectors/translators/google-translator.html