Vladimir Dimitrov
Vladimir Dimitrov

Reputation: 3

Wagtail serve different language on home page

From documentation: Users are forwarded to their preferred version, based on browser language, when they first visit the site.

Question: Is it possible users to be forwarded not based on browser language?

Upvotes: 0

Views: 341

Answers (1)

Alec
Alec

Reputation: 66

Yes, you can give the user a cookie that will set the language of the site for the duration of the cookie age.

If you choose to redirect using browser language or any other way, there should still be some default fallback language.

You can have a look at wagtail multilingual site documentation.

Here is some django documentation for setting the session.

Upvotes: 2

Related Questions