If neither the header nor the lang query parameters is used in the
request, the language used for the response reflects the locale
determined by the the
I18nContentSupport interface.
The language is not defined by the header or the lang parameter. The value returned for title is determined by the I18nContentSupport interface.
Both parameters
If both the header and the lang query parameters are set. The query
parameter takes priority.
The parameter is parsed for a single language tag.
If the tag is a full language tag such as de-CH or en-US, and the
system does not have a perfectly matching counterpart, the system
selects the closest variant (de, en). See the getNextLocale method
of info.magnolia.cms.i18n.AbstractI18nContentSupport.
If lang=all is set, all language variants are returned.
Header
Request URL
JSON response
Accept-Language: en-GB
/.rest/ep/travel/about?lang=de-DE
Both the header and the lang parameters are set, the lang parameter takes priority for content delivery.
The parameter is parsed for a single language tag.
If the tag is a full language tag such as de-CH or en-US, and the
system doesn’t have any perfectly matching counterpart, the system
selects the closest variant (de, en). See the getNextLocale method
of info.magnolia.cms.i18n.AbstractI18nContentSupport.
If lang=all is set, all language variants are returned.
Header
Request URL
JSON response
not set
/.rest/ep/travel/about?lang=de-DE
Selects the closest supported locale to that specified by the lang parameter.
Responds with a fallback value since the title_es property, which could hold a Spanish translation, is not defined for the page and/or the es locale is not configured for the site.