On this page
- General
- Adding Translation Code
- Removing Translation Code
- Effectively Using Custom Content as an Alternative
General
Please note, that the Static section is deprecated, and we would recommend to set up your translations in the Custom section instead.
Unlike other sections, the Static section entirely depends on translation code embedded directly within the theme. Before you start using this, we recommend to first add langify's general translation code in the main file of the theme (theme.liquid).
After adding or editing translations in the Static section please follow the additional steps listed below.
For a more streamlined experience, we recommend transferring your translations to the Custom section. Further details on this are provided below.
Adding Translation Code
- Navigate to langify's Static section and open the snippet containing your translations.
- After saving any translation, a notification bar will appear, indicating the need to manually add the translation code.
- Click 'Copy Published Code' to capture the translation code.
- Select 'Open' to access the corresponding snippet in your Shopify Theme editor.
- Replace the existing text by selecting all (Ctrl+A) and pasting the new code (Ctrl+V).
Please note that the red message will remain visible even after the translation code has been successfully added. Optimizing this is on our to-do list; we aim to enable langify to automatically verify the addition of the code. For the time being, we suggest to double-check whether the translations are appearing on your store page to confirm that the process is complete.
Removing Translation Code
If you want to remove the translation code from your theme,
- In the Static section, locate the snippet and click on 'Copy Un-published Code'.
- Click 'Open' to bring up the relevant snippet in your Shopify Theme editor.
- Remove the langify code by selecting all (Ctrl+A) and pasting the original code (Ctrl+V).
Effectively Using Custom Content as an Alternative
For translations within your native or customized theme code, opt for the langify Custom section to add translations as custom content
When translating pages created with a page builder app like Pagefly or Gempages, open the page within langify's Page section and input translations under the Custom tab. This ensures translations are applied solely to the specific page, without affecting others.