Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
A site in Magnolia may be configured to reflect the locale information provided in the Accept-Language
header, see see DefaultI18nContentSupport
and HierarchyBasedI18nContentSupport
in the configuration section below.
...
Code Block |
---|
/de/tour-type~active~.html |
See the section below how to To configure a site in Magnolia to parse Request-URI
for locale preference, see RequestLocaleAwareI18nContentSupport
in the configuration section below.
...
Generally, the configuration that defines the locale information for a site is usually keptlocated:
/modules/multisite/config/sites/<site-name>/i18n/locales
/site/config/site/<site-name>/i18n/locales
/modules/travel-demo/config/travel
....
| Defines the matching language part of the locale, for example the | ||||||||||||||||||||
| Defines the matching country part of the locale, for example the | ||||||||||||||||||||
| | ||||||||||||||||||||
class | optionalrequired, default is The class that defines the locale implementation. if the class is not specified, the locale is dependent on the setting in For the Accept-Language header case:
For the Request-URI case:
| ||||||||||||||||||||
enabled | required, default is The switch that enables Enables or disables the locale detection for the siteconfiguration. | ||||||||||||||||||||
defaultLocale | optional If no locale can be determined this | ||||||||||||||||||||
fallbackLocale | required, default is The content is served for this locale if the content is not available for the current locale or the |