TYPO3 Flow Base Distribution - Story #42408: Locale Detection / Selection
Dynamic locale detection / determination
This provides a way of detecting an appropriate
Locale to use for each request. Shipped with Flow
are two DetectionStrategies, Cookie and HttpAcceptHeader,
which will try to determine a Locale from these sources.
The Cookie's default name is assumed
can be set to a different one via Object.yaml.
If a DetectionStrategy can not reliably determine a
Locale, it returns NULL in order to abstain, and the
next Strategy in the configured chain is evaluated.
If eventually none matches, no concrete ``currentLocale``
will be set, hence falling back to the ``defaultLocale``.
Setting a Locale chain would look like::
TYPO3: Flow: i18n: detectionChain: ['Cookie', 'AcceptLanguageHeader']
The array values can also be set to a full qualified class name
which must implement \TYPO3\Flow\I18n\Detection\DetectionStrategyInterface.
(from the commit message)