Created
September 19, 2013 21:56
-
-
Save rruhlen/6630423 to your computer and use it in GitHub Desktop.
example of how to assign translations to a variable with liquid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% case system.language %} | |
| {% when 'de' %} | |
| {% assign customer_number_label = 'Kunden Nr.' %} | |
| {% assign order_number_label = 'Bestell Nr.' %} | |
| {% when 'en' %} | |
| {% assign customer_number_label = 'Customer No.' %} | |
| {% assign order_number_label = 'Order No.' %} | |
| {% endcase %} | |
| <div> | |
| <label>{{ customer_number_label }}</label> | |
| <input type="text" /> | |
| </div> | |
| <div> | |
| <label>{{ order_number_label }}</label> | |
| <input type="text" /> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment