To built theme and plugins, Wordpress provides lot of functions. To enrich the multilingual features, xili-language plugin offers a series of functions:
usable by developer with knowledges in php (see php source)
Return the current lang (slug) of the display webpage.
Return the language of current browser.
Return the lang and dir of current browser.
(previous table of functions are in the second part of this webpage