• Resolved curlybracket

    (@veganist)


    Hi!

    First of all thank you for your great work! I love Polylang!

    I’m currently using Polylang for a website that is intended for several African countries, some of them french speaking, some english, some both (like Cameroun). My website provides an english (en_US) and a french (fr_FR) version, the english version is the default language. I use the “Detect browser language” feature and I wanted to know if a browser that is configured for fr_CM (fran?ais Caméroun) would automatically redirect to the fr_FR version of my website, or if it redirects to the default language, i.e. en_US in my case?

    I would like browsers that are configured for french, regardless of the country code, to redirect to the fr_FR version, and similarly browsers, that are configured for english (example: Kenya), to redirect to the en_US version.

    I have no way to test this myself, therefore I’m asking in the forum how the automatic redirection works. (I did not read the code either, which might give me the answer.)

    The cookie set by Polylang seems to contain only the language, not the country code. This might already be the answer to my question..

    If this redirection is country code based, how could I force Polylang to redirect to the language, regardless of the country code?

    Any experiences with this?

    Thank you!

    • This topic was modified 4 years, 5 months ago by curlybracket.
    • This topic was modified 4 years, 5 months ago by curlybracket.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Detect browser language automatically: does fr_FR also work for fr_CM?’ is closed to new replies.