How to detect language automatically?

vaspet

New member
I’m trying to build a publication with multi-language support and would like to select one automatically based on user’s operating system or browser language.

In a web PHP script, one can use $_SERVER[‘HTTP_ACCEPT_LANGUAGE’] (returns “en-US” for example).

In a local browser, there are variables like window.navigator.languages (Chrome) and window.navigator.userLanguage (IE), etc.

What environment variables with language data are actually accessible with ExeOutput or can be passed to ExeOutput somehow?
 
Last edited:
Back
Top