Hi. I have been contracted to work on a rather large WP job that must present the content in at least 5 different languages.
The content is taken care of, and I think I have a good grasp of how to structure the site to present it to the user.
The thing is we want to do an initial locale detection upon first visit and take the user down the “appropriate” path based on that. I should mention that we are also planning to build an “override” mechanism in the form of buttons or a dropdown that would allow the user to change to another language at any time on their own.
My challenge is doing that initial locale detection and storing & using that value (“en” for English, “es” for Spanish, “fr” for French, etc.) I’ve never done anything like this before. I’ve been told it can be accomplished not through WP but through a script on the homepage that will pass a value. Does anyone have experience with anything similar? Thanks in advance.