Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change language #21

Open
tabeshR opened this issue Jul 14, 2020 · 3 comments
Open

change language #21

tabeshR opened this issue Jul 14, 2020 · 3 comments
Labels

Comments

@tabeshR
Copy link

tabeshR commented Jul 14, 2020

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 ?

@tsv2013
Copy link
Member

tsv2013 commented Jul 14, 2020

@tabeshR
Copy link
Author

tabeshR commented Jul 14, 2020

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"

@tsv2013
Copy link
Member

tsv2013 commented Jul 14, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants