The language is determined using a URL language indicator: path prefix or domain according to the configuration.
define('LOCALE_LANGUAGE_NEGOTIATION_URL', 'locale-url');