CMS Development

OSgt
Contributor

Workflow custom action translation

SOLVE

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 !
0 Upvotes
1 Accepted solution
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Workflow custom action translation

SOLVE

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

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

View solution in original post

2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

Workflow custom action translation

SOLVE

Hi, @OSgt 👋 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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Workflow custom action translation

SOLVE

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

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !