Page language selection feature best practice

What is the best practice to localize your app regardless of what the browser’s language are

I understand that we can add language on weweb editor’s settings but this feature works depending on the user’s browser language.

what if the user wants to have english language browser but select the page language to chinese ?

my first instinct is to

  1. create a variable called “selected language”
  2. on each of every text widget add an if condition

Screen Shot 2023-12-05 at 4.30.10 PM

but this if condiiton only takes 1 condition , what if i have 5 languages ?

Why not just bind it to the other language?
You actually can add languages, in the switcher.

then the option to differentiate between languages will appear.

Screenshot 2023-12-05 at 11.00.19

Your method works depends on the page browser default right ?

What we want is to have a selector on the page where users can choose which language they want

noted… i didnt know there is a language switch widget.

thank you!

1 Like