Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: How to use internal links in description (product, blog...) so it keeps redirecting to same lang

How to use internal links in description (product, blog...) so it keeps redirecting to same language

ThibautA
Visitor
1 0 0

Hello,

 

I really struggle to do one (simple?) thing : I want my French customer to have all the links on the website redirecting to the French version (I thought it would behave by default like this when using /products/my-product-page link in href but it's not...), same for my English customers and I plan to add more language later... So far I have to update every link in every translation to add https://mysite.com/fr...

 

I am using one single website and I am not looking to manage 2 Shopify stores. I am translating the website myself and I am not looking for a third party to translate my shop.

 

So far, all links redirect to the standard English version. As explain, I am using in the href the syntax /products/my-product-page, which adds automatically my domain name afterwards. I have played with liquid variable and syntax but I am new to this and nothing worked (I have used {{ shop.locale }} in the href but strangely the result print my site url with the /fr as expected plus the {{ shop.locale }} variable name in the url afterwards like https://mysite/fr/product/{{ shop.locale }}...

 

Any idea what I am doing wrong or any solution to share ? 

 

Thanks a lot 🙂

Replies 2 (2)

DesignHolistic
Shopify Partner
1 0 0

If you don't want to use two separate stores, another option to translate your Shopify store to a new language while keeping the internal links in the same language is to use Shopify's built-in multi-language feature.

Shopify's multi-language feature allows you to translate your store's content into multiple languages and then display the correct version of your store based on the customer's language preference. This means that your customers can browse your store in their preferred language, while all internal links and URLs will remain in the same language.

Here are the steps you can follow to use Shopify's multi-language feature:

  1. Install the Multi-language app: Install Shopify's Multi-language app from the Shopify App Store. This app will allow you to create translations of your store's content in multiple languages.

  2. Create translations: Use the Multi-language app to create translations of your store's content, including product descriptions, collections, pages, and menus. You can also translate your theme's language settings.

  3. Set up language preferences: Go to your Shopify dashboard, and under the "Preferences" section, click on "Languages." Here, you can add and manage the languages you want to offer on your store. You can also set the language preference for your store based on your customers' browser language.

  4. Customize your theme: You can customize your theme to display language switchers and language-specific content. Shopify provides code examples and resources to help you implement these features.

  5. Test your translations: Make sure to thoroughly test your translations to ensure that they are accurate and that your store is functioning as intended.

By following these steps, you can use Shopify's multi-language feature to translate your store into a new language while keeping the internal links in the same language. This option allows you to manage your translations in one store and maintain consistency across your site.

Everyone needs a coach. Someone always knows more than you.
AngyPine
New Member
4 0 0

Hi, Is it also possible with this multi language built in feature to write my own translations? Because sometimes I dont like the automatic ones. If so, this would be great for the internal linking, which is now not possible with my external translation app...