Workflow custom action translation

Hello,

I have created a custom action and I would like to translate it (english and french). I see I can translate labels, but in my action I have “select” input, here the code :

[

“typeDefinition” => [

“name” => “stop”,

“type” => “enumeration”,

“fieldType” => “select”,

“options” => [

[ “value” => “1”, “label” => “Oui”],

[ “value” => “0”, “label” => “Non”],

]

],

“supportedValueTypes” => [“STATIC_VALUE”],

“isRequired” => true

],

How can I translate labels “Oui” and “Non” ? I can’t found it in the documentation.

Thanks a lot !

Hi, @OSgt :waving_hand: Thanks for reaching out. Let’s see if the community has any experience here — hey @LMeert @JBeatty, can you shine any light here?

Thank you! — Jaycee

Hi @Jaycee_Lewis, @OSgt,

I don’t know about dropdown value translations and I can confirm this is not documented.
However there’s a nice litlle workaround if your dropdown is just “oui/non”, you should use the type “bool” and fieldtype “booleancheckbox”, this way you can translate the label and have users tick a box instead of choosing from two options.

Hope this helps,

Ludwig