Currently i'm using iframe to show a video on my page with a static url to the video.
I've added a locale file for FR to support french in my shop, and here's my question.
I have 2 videos (one in english and one in french) where / how should I save the video url for the french version so when the user is from FR locale, they see the french video instead of the english video?
Is there a way to save variables inside locale file for me to retrieve from template files?
Solved! Go to the solution
first, let me know how exactly you are managing multiple languages? Are you using any third party APP?
This is an accepted solution.
No, locale folder JSON file only used when you change your store default language from Admin > Settings > Store languages
means, if you want to run multiple languages on your store then you have to go with any third party APP like langify
Yes, you can display different video, text, image, etc.. based on the language but it would not automatically change language based on user location. You have to set all languages on your site header or somewhere else and the user has to change the language manually so content will display based on user selected language.
I checked Langify app description and found that it already gives that option. You can check read about the App features.
"Automatic language detection (customers will be redirected to their preferred language automatically)"
You mentioned you have a video with versions of English and French. As you proposed in the follow-ups, you are right, you could create different domains or URLs for each language, and direct your visitors to corresponding URLs based on their locations. For example, exampleshop.com/en for English version, and exampleshop.com/fr for French version.
Feel free to reach out if you have any questions. Hope it helps!
I have the same initial problem. I have an online store with 2 locals : FR and ENG. I am using the Langify app for all translations. I have a video section on my website where it showcase an ENG video, and I would love that when the costumer changes local for the FR website, they see the FR video instead. Do you know how to do that? Do I need to code something or everything can be done with Langigy? If so, how do I do it?
Thanks a lot! :)