I’m interested in creating a multilingual platform and would like to have the language displayed based on the user’s browser settings by default.
How can I accomplish this?
My initial thought is to use a variable array containing French and English, and then set up the variable based on the user’s browser language preference. However, I’m not sure about the implementation details.
Could you provide guidance on how to achieve this?
You probably would need to use custom JS to get the browser part. I’m attaching an article I found by searching Google. For the setting language part, you can use the Workflow action for this, there should be something like “Change / set language”.
Does it really? I know of an app that is built in WeWeb and it just forces Spanish on me every time They might have done this on purpose via a workflow tho
@Broberto, I think you are right. My Weweb app doesn’t display the language based on Browser’s current language anymore. In the past it worked, but not anymore. Now always displays the default language no matter what browser’s language is. So I must get the window.navigator.language with javascript and then change Weweb’s language manually with the Change Language workflow action.