'How to make change language system in shopify without any apps

How to make change language system in shopify without any apps? i have 2 locales file: ru, lv and i need to change language by any url or something like that, how to make it work?



Solution 1:[1]

Shopify stores can have dynamic URLs generated for them when they sell in multiple languages. When you add an additional locale (which you already did), Shopify automatically creates a URL path for it.

Some examples:

https://myshop.com -> Refers to your `locales/*.default.json`
https://myshop.com/ru -> Refers to your `locales/ru.json`
https://myshop.com/lv -> Refers to your `locales/lv.json`

So the solution to your problem is to simply redirect a user to another locale path (or give users the possibility to it via language selector).

I recommend reading Shopify's Support multiple currencies and languages documentation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 davidthorand