Using Stockist with the Langify app

Stockist can work with the Langify app on Shopify. This article contains instructions for setting up translated versions of your locator using Stockist and the Langify app.

Translating your Stockist Store Locator using Langify

Due to the way Langify works, it's not able to translate the text that appears within your store locator. This means that the text in your store locator will always be the same, regardless of the language setting on your site.

If you'd like to translate the text in your store locator, you can follow the steps below. You'll need to create a separate translation in Stockist for each language, and then configure Langify to use a different language-specific version of your Stockist embed code on the page depending on your site's language setting.

Set up your translations

Stockist supports creating multiple translations of the app's text in a single account. To set up multiple translations, log into your account and use the  Text & translations link in the left menu of the Stockist app dashboard to set up the correct text for each translation:

Configure Langify to switch Stockist accounts depending on language

Once you have your Stockist account set up with the correct translations and store details, you're ready to set up Langify to display a different translation depending on the language used by each visitor:

  1. Copy your store locator code
    1. Log into your Stockist account 
    2. Click Get embed code in the left menu of the Stockist app dashboard
    3. Select the appropriate language from the drop-down above the embed code:
    4. Once the correct language is chosen, select all of the HTML code in the grey box, right-click, and select Copy.
  2. Insert the code into Langify
    1. Open the Langify app dashboard for your shop
    2. In the Langify app header, choose the language corresponding to the Stockist account that you've just copied the embed code from
    3. Choose Pages in the left menu
    4. Open the Store Locator page (Note: it may be named differently if you've changed the page name in Shopify)
    5. On the right-hand (Translation) side, in the Description textbox, click "<>" (HTML view)
    6. Clear any content in the textbox, then paste in the embed code from step 1(b)
    7. If you'd like to translate the title or description of the page, do so now (before saving)
    8. Click Save only once.
  3. Repeat steps 1-2 for for each language

Important: Due to a bug in Langify, clicking Save (in step 2) more than once will break the locator's embed code and prevent the Stockist app from loading on the page correctly. If this happens, just repeat steps 1-2 above to fix the issue.

Once each language has been set up, switching the language selector on your site should correctly switch the language in your store locator.

If you run into any trouble, we're here to help! Just click Contact Us at the top of this page.