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?
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)"
|an hour ago|
|4 hours ago|
|6 hours ago|