Elemental
Locales
Locales allow you to customize elements based on the the locale of the target recipient.
At the moment locales is restricted to elements that have a content
property. This includes action
, quote
, and text
elements.
Locales take the following interface:
When a "locale"
is specified in the message.to
field, each element that has content
for that "locale"
will have their top level content property replaced by the locale specific
content.
In the above example, Hello
would be replaced with Bonjour
.