Internationalize Branch Labels

Custom split activity branch labels support internationalization (i18n).

Decision tree of outcomes for Buy, Sell, and Custom Label, respectively: Send SMS, Update Contact, or Custom Activity, each with 1 day turnaround.

To internationalize branch labels, map branchResult to an i18n key defined in the activity's config.json under the lang object. The outcomes are mapped to keys in an object map called outcomeLabelLanguageMap.

The JSON object in this lang object uses the outcomes from the sample in Define Custom Split Activity with Multiple Outcomes, which defines branches with Buy, Sell, and Hold outcomes.

Map each outcome to its associated i18n key by defining a label map. Each entry is branchResult: i18n key:

If no mapping is found and metaData.label is not defined, Journey Builder displays the outcome's arguments.branchResult.