Translation Macro

The Translation macro allows you to insert a translation message in the page content.


{{translation key="<key>" parameters="<["param0", "param1", "param2"]>" locale="<locale>" /}}

The list of the 31 supported locales are available in the documentation page about Internationalization.


NameOptionalAllowed valuesDescriptionDefault value
keyNoA stringThe key associated to the translation.None
parametersYesAn arrayThe optional parameter to insert in the translation message.None
localeYesA valid localeThe language and country in which to translate the key.None


{{translation key="search.panel.header" locale="en_US"/}}

Related Pages

Trying to decide between Cloud and On Premise? See the comparison on the XWiki Help Center.

Search this space