surveyjs_react_quickstart icon indicating copy to clipboard operation
surveyjs_react_quickstart copied to clipboard

change language

Open tabeshR opened this issue 5 years ago • 3 comments

Hi, I want to change the language and I wrote this code class SurveyCreator extends Component { surveyCreator; componentDidMount() { let options = { showEmbededSurveyTab: true }; this.surveyCreator = new SurveyJSCreator.SurveyCreator( null, options, ); this.surveyCreator.survey.locale="fa";

but it changed only button text and the message after form submit and other things are in english what should I do ?

tabeshR avatar Jul 14 '20 12:07 tabeshR

Where do you want to change language - in SurveyJS Creator or in survey?

Here are the samples of multilanguage: survey: https://surveyjs.io/Examples/Library?id=survey-multilanguages&platform=jQuery&theme=modern creator: https://surveyjs.io/Examples/Survey-Creator?id=localization&theme=bootstrap , https://surveyjs.io/Examples/Survey-Creator?id=multiplelanguages&theme=bootstrap

tsv2013 avatar Jul 14 '20 12:07 tsv2013

In creator I saw this but I don't know where should I code I wrote this code this.surveyCreator.survey.locale="fa" but not complete changed "I use React"

tabeshR avatar Jul 14 '20 12:07 tabeshR

You are talking about the language in creator but in your code you setting language to the survey object instance inside creator. Have you cheked the samples I've shared?

tsv2013 avatar Jul 14 '20 12:07 tsv2013