With the Translate & Adapt app, you can add translations to your store for products, collections, blog posts, policies, and pages.
Hi,
I've just installed the new translation app by Shopify "Translate & Adapt". Is there a way to detect the selected language by using Liquid? I need to display different messages based on the translated language.
I came across this old thread that detects the language in the pathname but I wonder whether or not there is a newer way to detect the language: How to detect/check current or default site language in liquid? - Shopify Community
Thank you,
ITchef
Solved! Go to the solution
This is an accepted solution.
Hi there,
Rich here from the product team. Yes you can - more info here:
https://shopify.dev/api/liquid/objects#request-locale - you can use this to determine the locale the customer has selected / been directed to.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi there,
Rich here from the product team. Yes you can - more info here:
https://shopify.dev/api/liquid/objects#request-locale - you can use this to determine the locale the customer has selected / been directed to.
To learn more visit the Shopify Help Center or the Community Blog.
User | RANK |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023