surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
909 stars 373 forks source link

Localization problem with survey.ko.js stuffs #1000

Open salehasadi opened 3 years ago

salehasadi commented 3 years ago

Are you requesting a feature, reporting a bug or ask a question?

seems this is a bug.

What is the current behavior?

image otherItemText does not appear according to selected locale and seems always is reading default strings.

What is the expected behavior?

otherItemText should appear according to active locale.

How would you reproduce the current behavior (if this is a bug)?

image simply could be checked in localization example in your website.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/Examples/Survey-Creator/?id=localization#content-result

Specify your

andrewtelnov commented 3 years ago

@salehasadi This strings belongs to Survey Localization and not SurveyJS Creator localization. You have to change the survey.locale property from "default" to the locale you need. You can change the survey default locale as: Survey.surveyLocalization.defaultLocale = "de";.

Thank you, Andrew

salehasadi commented 3 years ago

@andrewtelnov Thanks, that works. could you please check if this is mentioned in docs or not?