> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.devit.software/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Integration with Weglot

# ${color}[#204a87](Selecty & Weglot)

${color}[#3465a4](In this article:)

* [How to integrate Weglot and Selecty](#1-how-to-integrate-weglot-and-selecty)
* [Need help?](#1-need-help)

|| Before proceeding, we strongly recommend coordinating your actions with the support teams of both applications. This will make the integration process smoother and faster. 

# ✔️ How to Integrate Weglot and Selecty

There are two possible setup variants:

* Variant 1: **/nl** - language code only
* Variant 2: **/en-nl** - language + country code (or a custom shortcut, depending on your Weglot configuration)

### Step 1: Unpublish non-default languages in Shopify.

When using Weglot, all languages and translations ​​are controlled by Weglot. Therefore, it is important to unpublish non-default languages ​​in Shopify.

1. Go to the Shopify admin ->  **Settings**  -> **Languages**. 
2. **Unpublish** all languages except the default one.

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/unpublish-languages_q2j8s2.png)

### Step 2: Enable subdomain or subdirectories in Weglot

1. Open the Weglot app and go to the **Projects** section. 
2. Click **Settings** -> **Setup**.
3. Enable the **Subdomains/Subdirectories** option.

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/enable-subdomains-subdirectori_v77gvl.png)

### Step 3 (Optional): Add Markets in Shopify

This step is required only for **Variant 2**.

It is necessary to create subdirectories for the default language in Shopify (for example, /en-nl) in order to match the subfolder structure used by Weglot.

Since the default language is managed through Shopify, we need to add resources through Shopify markets.

| Note: The Weglot Advanced plan is recommended for this step, as it allows adding custom resources in Weglot.

1. In your **Shopify admin**, go to **Settings** -> **Markets**. 
2. Select the market you need.
3. Click the + icon next to the **Domain language** option -> select **New subfolder**. 

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/domain-language_1sr5nxc.png)

4. Enter manually the appropriate value in the **Domain Suffix** field. 
5. Click **Done**, then **Save** at the top of the page.

### Step 4: Add resources in Selecty

1. Open Selecty and go to the **Resources** section -> Click on Resource -> **Add custom resource**. 

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/custom-resource_1q064cj.png)

2. Enter a name of the custom resource group and click Apply.

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/name-of-custom-resouce_17xaf09.png)

3. Click **Add resource** and fill in the fields using the values created in Weglot.
4. Make sure the **Retain URL while switching** checkbox is enabled to ensure correct URL behavior.

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/retain-url_9mqlg8.png)

5. Click **Apply**, then **Save** at the top of the page.

### Step 5: Create selector in Selecty

1. Go to the **Selecty dashboard** and click **Create Selector**.
2. Choose a theme, apply the necessary customizations, and save your changes.
3. Click **Publish** to activate the selector.

For more detailed guidance, refer to the article – [Getting started with Selecty](https://help.devit.software/en/article/quick-start-in-selecty-geolocation-markets-1jpnwfz/).

### Step 6: Add Exclusion Rules in Weglot

When Weglot translates store content, it can also modify Selecty’ links. To prevent this, you need to exclude Selecty-related elements from translation.

1. Open Weglot and go to the **Translation Exclusions**. 
2. Click **Add Rule**.
3. Add the following files: 

* #_selectors.json 
* #sel-form

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/add-excluded-blocks_at6pc5.png)

4. Click **Save Rule**.

# ✔️ Need help?

Don’t worry if this feels technical - our support team can guide you through the process.

To get maximum support and resolve your issues quickly and efficiently, we recommend contacting the support of both applications:

* Selecty: support@devit.software 
* Weglot: [Weglot Help Center](https://support.weglot.com/) or in-app support


