Hi Team,
We have came across an issue for the translation default language, Changing default in designer tab to French still show english as default in translation tab.
Thanks,
Nitin
Hi Team,
We have came across an issue for the translation default language, Changing default in designer tab to French still show english as default in translation tab.
Thanks,
Nitin
Hello,
Your default language is still "English", if you go to "Default language" you should see "Default (English)".
After the changes I made on your request, we decided to show SurveyStrings.defaultLocale. It can't be changed from the property grid, by default it equals to "en". You can change it from the code only.
SurveyStrings.defaultLocale = "fr";
.
I believe it is logical. You default language is "en". End-user changed the current locale to "fr" and now setups his/her French strings.
Thank you,
Andrew
SurveyJS Team
Hello Nitin,
You have to call the same code on SurveyJS Creator and on Survey Library pages.
Survey.SurveyStrings.defaultLocale = "fr";
In this case the default language becomes "fr". Everything that are in "default" or in strings directly:
title: { "default": "default text", "en" : "en text"}
and title: "default text"
.
You can switch to English: survey.locale = "en"
and back to default (French), survey.locale = ""
;
Thank you,
Andrew
SurveyJS Team
I have run into the same issue.
In the page where we have Creator, I put this code:
Codeimport * as SurveyCreator from "survey-creator";
import * as SurveyVue from "survey-vue";
// ...... some more code .....
SurveyVue.SurveyStrings.defaultLocale = this.$i18n.locale; // valid locale, like "lv"
This results into error Error in mounted hook: "TypeError: Cannot set property 'defaultLocale' of undefined"
What am I doing wrong?
Hello,
I created a separate ticket on your behalf: (T6488: Change creator default locale). We placed it in our processing queue and will process it shortly.
Thank you,
Andrew
SurveyJS Team