Multi-language setup (Langify v2 app)

Instructions for setting up multi-language templates in Order Printer or Order Printer Pro, with Langify.

Bjorn Forsberg avatar
Written by Bjorn Forsberg
Updated over a week ago

It is possible to have the templates in multiple languages, but it does take some setting up initially. 

Following are instructions if you are using the Langify app on your multi-language website:

Step 1

Customize the template in Order Printer Templates for Language 1, then export the code and save it into a file.

Note: You must first purchase the template to be able to export the code.

Step 2

Go back into the Order Printer Templates editor and update your template into Language 2, then export the new code and save it into another file.

Step 3
Use the below code, to place the full template code into the correct section:

{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
  {% when 'de' %}
      GERMAN TEMPLATE CODE
  {% when 'es' %}
      SPANISH TEMPLATE CODE
  {% else %}
      DEFAULT LANGUAGE CODE
{% endcase %}

Note: This is only an example, make sure to copy the correct language code (example: "de") from your Langify account.

Here is another example if you want to translate the template in German only:

{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
  {% when 'de' %}
      GERMAN TEMPLATE CODE
  {% else %}
      ENGLISH TEMPLATE CODE
{% endcase %}

Step 4

Copy and paste the full code into the template in Order Printer or Order Printer Pro. This means you have 1 template, which contains the code of many different languages.

Did this answer your question?