Magnolia 6.0 reached end of life on June 26, 2019. This branch is no longer supported, see End-of-life policy.
Define the languages that editors should be able to choose as locales the site definition under <site>/i18n/locales
. Each locale has language
and country
properties. They allow regional variations such as zh_TW
for traditional Chinese or pt_BR
for Brazilian Portuguese.
Example: Locales en
and de
in the default site definition
Node name | Value |
---|---|
<site> | |
i18n | |
locales | |
en | |
country | |
enabled | true |
language | en |
de | |
country | |
enabled | true |
language | de |
class | info.magnolia.cms.i18n.DefaultI18nContentSupport |
enabled | true |
fallbackLocale | en |
Properties:
| required |
| required Locale name constructed from the language and country such as |
| optional , default is Enables the locale. |
| required Language code such as |
| optional Country code such as |
| required Class that implements I18nContentSupport such as:
|
| optional , default is Enables support for localized content. Used to rewrite URIs and getting nodes based on the current language. |
| optional , default is Content is served for the fallback locale if content is not available for the current locale. |