• I want a feature on my WordPress site with the following functionalities:

    1. The site’s language should automatically change based on geolocation. For example:
      • India: English
      • China: Chinese, etc.
    2. Localization should also be enabled based on the user’s location, such as:
      • India: English
      • China: Chinese, etc.
    3. This functionality can be implemented through a plugin or custom code.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Some people travel and do not wish to see a language based on IP geolocation. I recommend using the accept-language: header value to determine which language to display. This is the user’s preferences according to the browser they are using. If desired and there’s no such header, then you could fall back to IP geolocation.

    In either case be sure there’s an obvious way to switch languages despite header values or geolocation.

    Please also note that geolocalization is not permitted in some regions of the world for data protection reasons. There are therefore many reasons not to use it. The alternatives are better and tailored to the user

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.