news.volyx.in

Don't set the language of your website based on user location (dev.to)

594 points by pedrogpimenta · 2332 days ago · 293 comments on HN

Article summary

The article argues that setting the language of a website based on user location can be frustrating for users who do not speak the local language. Instead, the author suggests using the user's browser or system language to determine the website's language. This approach is considered more user-friendly, especially for travelers or expats who may not speak the local language. The article also mentions that some websites reload or repaint the page to change the language, which can be annoying.

Main themes

  • language detection
  • user experience
  • location-based services
  • browser language
  • cultural immersion
  • website design
  • internationalization
  • geolocation databases
  • language switcher
  • user preferences

What commenters say

  • Using browser language is a better approach than location-based language detection, as it respects the user's preference.
  • Location-based language detection can be problematic for users who do not speak the local language, even if they are physically present in that location.
  • Some users appreciate being shown content in the local language when traveling, as it enhances their cultural immersion.
  • Websites should provide an easy way to change the language, as it can be frustrating when the default language is not the user's preferred language.
  • Poorly implemented language detection can lead to a worse user experience, especially if the website does not provide a clear way to change the language.
  • The approach to language detection should balance the needs of local users with those of international users who may not speak the local language.
  • Using IP geolocation databases can be inaccurate, leading to incorrect language detection.
  • Websites should consider providing a language switcher that is easily accessible, rather than relying solely on location-based detection.