Sha256: 41611d0b6267dabb08254d036ff4cc5e28eabbc527d953547d7dc6ec1714e453

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/modules/connectors/translator
 #  Liquid CONNECTOR for translation providers supported by 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 %}
{% assign translation          = site.data.j1_config.translation.enabled %}
{% assign translation_provider = site.data.j1_config.translation.provider %}


{% comment %} Main
-------------------------------------------------------------------------------- {% endcomment %}

<!-- [INFO   ] [j1.modules.connectors.translator      ] [ start processing load region head, layout: {{page.layout}} ] -->              
{% if translation %}

  {% case translation_provider %}
    {% when "google" %}
      <!-- [INFO   ] [j1.modules.connectors.translator      ] [ place Google Translator ] -->
      {% include themes/{{site.template.name}}/modules/connectors/translators/google-translator.html %}
    {% when "custom" %}
      <!-- [INFO   ] [j1.modules.connectors.translator      ] [ place Custom Translation Provider ] -->
      {% include themes/{{site.template.name}}/modules/connectors/translators/custom-translator.html %}
  {% endcase %}

{% endif %}
<!-- [INFO   ] [j1.modules.connectors.translator      ] [ end processing ] -->

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
j1-template-2021.0.0 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.25 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.24 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.22 _includes/themes/j1/modules/connectors/translator