top | item 44032649

(no title)

cessor | 9 months ago

It's easy to make Django react to "Accept-Language" headers, I love how the LocaleMiddleware supports it out of the box [1]. I implemented automatic language detection to show either German or English content and was surprised how many users hated it. We're located in Germany but a lot of people have their browser set to English for some reason, yet they still expect to see pages in German. Of course I had provided an explicit language switch but many users did not like the site guessing their language.

[1] https://docs.djangoproject.com/en/5.1/topics/i18n/translatio...

discuss

order

No comments yet.