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
Advanced Tables - Table Plus | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
<site>
...
i18n
...
locales
...
en
...
country
...
enabled
...
language
...
de
...
country
...
enabled
...
language
...
|
...
|
...
|
...
|
Properties:
| required | ||||||||
| required Locale name constructed from the language and country such as | ||||||||
| optional , default is is Enables the locale. | ||||||||
| required Language code such as as | ||||||||
| optional Country code such as as | ||||||||
| required Class that implements I18nContentSupport such implements
| ||||||||
| optional , default is is Enables support for localized content. Used to rewrite URIs and getting nodes based on the current language. | ||||||||
| optional , default is default is Content is served for the fallback locale if content is not available for the current locale. |