Sha256: aff3f89246f1c300149e391d77f4053be4c42a5bfcc85f37cbb9ec10f8427537

Contents?: true

Size: 1.92 KB

Versions: 22

Compression:

Stored size: 1.92 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.template_settings.translation.enabled %}
{% assign translation_provider = site.data.template_settings.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

22 entries across 22 versions & 1 rubygems

Version Path
j1-template-2020.0.21 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.20 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.19 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.18 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.17 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.16 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.15 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.14 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.13 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.12 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.11 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.10 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.9 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.8 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.7 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.6 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.5 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.4 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.3 _includes/themes/j1/modules/connectors/translator
j1-template-2020.0.2 _includes/themes/j1/modules/connectors/translator