Question T18874
Visible to All Users

Language selection

created a year ago

Hello,

now we added multiple languages to the content json file.
If we use the preview mode to verify the survey I am able to choice the required language upper right.
It works.
If I Run the Survey from the list of surveys, there is no selection visible.

We use the surveyjs-nodejs-postgresql docker version.

I loop thru the tickets but can't find a solution for that.

Best Regards

Chris

Answers approved by surveyjs Support

created a year ago

Hi Chris,
Thank you for reaching out to us. A SurveyJS Form Library / survey runner doesn't contain a language selector. To implement a language selector, you can add a drop-down (an HTML selector) to your web page. Use the survey.getUsedLocales() function to obtain an array of locale keys used within a particular survey. Set the survey.locale property to a target locale value.

Please let me know if you have further questions.

    Comments (2)
    C C
    chris.ditze-stephan a year ago

      OK
      I will change my mode of work.
      Ignoring the demo applications and start from scratch.
      It seems not so complex.

        Please feel free to reach out to us if you have any questions.

        Thank you