Liqiud basics
Modules
API
Mailer
Translations
On this page
Overview
Your can access the translations via JavaScript and Liquid.
Field validation errors - Alert
| Name | Description |
| missing_field | %{field}% måste fyllas i. |
| invalid | %{field}% innehåller ogiltiga uppgifter. Försök igen. |
| already_exists | %{field}% existerar redan. |
| confirmation_error | %{field}% matchar ej, försök igen. |
| record_invalid | Unable to save your changes. |
| value_too_short | Field is too short |
| not_a_number | Field must be a number |
| less_than | Field is less than stated |
Webshop Mailer Subjects
See Mailer Templates
| Name | Description |
| password_resent | Email subject for Password reset |
| welcome | Email subject for when customer has created an account |
| invitation | Email subject for when customer has been invited to join webshop |
| pending_approval | Email subject for when the customer waits for his/her account to be approved |
| order_confirmation | Email subject for when customer have placed an order |
| order_notification | Email subject to webshop owner when customer have placed an order |
| shipment_notification | Email subject for when an order has been shipped |
| recommend_variant | Email subject for when sending a recommendation for a product |
Customer/User
See Customer Notifications
| Name | Description |
| customer_registered | notice: customer was registered |
| customer_registration_complete | notice: customer accepted the invitation and completed the registration |
| profie_saved | notice: profile was updated successfully. |
| instructions_sent | notice: instruction for password reset have been sent to customer email. |
| password_updated | notice: password updated. |
| customer_blocked | alert: customer account is blocked |
| not_approved | alert: customer has not been approved. |
| not_verified | alert: customer has not clicked in the link provided by the verification email |
| unknown_email | alert: email address does not match any customer. |
| invalid_email | alert: email address is invalid |
| password_reset_expired | alert: customer tries to reset password with token older than 24h |
| require_login | alert: requires customer to be logged in to access this page. |
| invalid_login | alert: invalid login credentials |
| confirmation_error | alert: password confirmation failed/they don't match |
| invalid_password_token | alert: customer tries to reset password with invalid token. |
| invalid_verification_token | alert: attempt to verify with invalid/expired token. |
| invalid_invitation_token | alert: attempt to accept invitation with invalid/expired token. |
Order/Order items:
See Order Notifications
Stock Items
| Name | Description |
| in_stock | When there are products in stock |
| out_of_stock | When the product is out of stock |
| backorder | If a product can be ordered even if there are no items in stock |
| delivery_time_in_stock | The delivery time for when a product is in store |
| delivery_time_out_of_stock | The delivery time for when a product is out of stock |
Assign a JS variable to a Liquid variable
In header.inc you can add this snippet of code and you will be able to use the translations from any file.
<script>
window.translations = {{ site.translations | jsonify }};
</script>
Use the translations variable in a JS-file to find the translation wizard
translations['wizard'];To be able to use the translation it needs to be translated in your page settings. In other word: It must be a key-value pair.
Updated: 2020-11-24