Answer the question
In order to leave comments, you need to log in
How to spin a redirect to Api Yandex maps?
Hello! Please tell me what I'm doing wrong in the code. I screwed the Yandex maps api to determine the user's country so that it shows him the desired language. Something doesn't work. I'm not good with languages, maybe I spelled something wrong?
Answer the question
In order to leave comments, you need to log in
To determine the language used on the client side of the site, it is enough to analyze the window.navigator properties.
How to determine the user's browser language?
PS:
header('loacation ') - you can't use this in JS, it's PHP.
In JS, the same behavior is triggered by changing the window.location.href property
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question