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.
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.