Elemental
Locales
Locales let you localize content for text, quote, and action blocks. Specify translations using a locales object, and Courier replaces content based on the recipient’s locale.
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
.