{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/modules/connectors/translator # Liquid CONNECTOR for translation providers supported by 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 %} {% assign translation = site.data.j1_config.translation.enabled %} {% assign translation_provider = site.data.j1_config.translation.provider %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if translation %} {% case translation_provider %} {% when "google" %} {% include themes/{{site.template.name}}/modules/connectors/translators/google-translator.html %} {% when "custom" %} {% include themes/{{site.template.name}}/modules/connectors/translators/custom-translator.html %} {% endcase %} {% endif %}