Question

Multilingual via API

  • 26 April 2023
  • 3 replies
  • 27 views

Userlevel 5
Badge +2

Hello,

We want to replicate forms in multilingual variation, indeed we saw Typeform recommendations, but they seem rather a walkaround. Question:

Is it possible to do multilingual via API? E.g. you have one form, but you could simply have all the questions, description and answers translated, could via API indicate this is /en this is /es and it would load same form, but in different language, or that would work and better to create a copy of form and use it that way? Also, when you create a copy via api, would it also appear in the Typeform admin panel?


3 replies

Userlevel 7
Badge +5

Hi @ValdemarQ Happy Wednesday! Nice to see you here again. This isn’t possible via the API, but you could most likely write a code that would serve up the form according to where they’re located. 

@mathio might have some advice for you on this. 

Userlevel 5
Badge +2

@mathio 
What could you advice here? Thanks

Userlevel 7
Badge +5

I would suggest to create a copy of your typeform as it does not support multiple languages in single form.

You can write some custom code to automate this process via API - eg. retrieve a form, translate all texts automatically (eg. with Google Cloud Translation API) and create a new form with those translations. yes, forms created via API will be displayed in your admin panel.

You can use embed SDK to display different typeform for each language - see this demo (or the source code).

Reply