cool-policeman-94412
10/16/2023, 7:37 AMnarrow-agent-91470
10/16/2023, 4:54 PMcool-policeman-94412
10/16/2023, 6:55 PMcrooked-van-25152
10/16/2023, 6:58 PMcool-policeman-94412
10/16/2023, 9:03 PMnarrow-agent-91470
10/16/2023, 9:14 PMearly-train-33247
11/03/2023, 1:32 PMjs
[{
label: "English",
value: "en"
}, {
label: "Spanish",
value: "es",
}, {
label: "Portuguese",
value: "pt"
}]
You can build this using a Code cardearly-train-33247
11/03/2023, 1:38 PMConsider this list of language options to be presented to a user.
You should output an array in the same format but with each label translated to its respective language
early-train-33247
11/03/2023, 1:38 PMlist: @workflow.languageOptions
early-train-33247
11/03/2023, 1:40 PMjson
[
{
"label": "English",
"value": "en"
},
{
"label": "Español",
"value": "es"
},
{
"label": "中文",
"value": "zh"
}
]
Then you pass this variable as custom choices in your Capture.
Store the selected language in a variable and use it in the Set User Language
cardearly-train-33247
11/03/2023, 1:41 PMearly-train-33247
11/03/2023, 2:17 PMjolly-policeman-82775
11/03/2023, 3:03 PMjolly-policeman-82775
11/03/2023, 3:03 PMearly-train-33247
11/03/2023, 6:29 PM