survey.settings.storeDuplicateTranslations = true doesn't preverve duplicate translation strings in Survey Creator

This issue has been tracked since 2023-03-09.

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

asking a question/reporting a bug

What is the current behavior?

duplicate values in the survey are removed even with storeDuplicateTranslations set to true

What is the expected behavior?

Duplicate translations should not be removed

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

Codesandbox: https://codesandbox.io/s/peaceful-hooks-4btwyp?file=/src/App.tsx

Current JSON for the first question:

"type": "panel",
     "name": "nps-panel",
     "elements": [
      {
       "type": "rating",
       "name": "nps-score",
       "title": {
        "default": "On a scale from 0 to 10 how likely are you to recommend us to a friend or colleague?",
        "fr": "Sur une échelle de 0 à 10, quelle est la probabilité que vous recommandiez notre produit à un ami ou à un collègue?"
       },
       "rateMax": 10,
       "minRateDescription": {
        "default": "Very unlikely",
        "fr": "Très improbable"
       },
       "maxRateDescription": {
        "default": "Very likely",
        "fr": "Très probable"
       }
      },

Go back to the editor, replace "On a scale from 0 to 10 how likely are you to recommend us to a friend or colleague?" with "Sur une échelle de 0 à 10, quelle est la probabilité que vous recommandiez notre produit à un ami ou à un collègue?", click back to the JSON viewer, it now says

 {
       "type": "rating",
       "name": "nps-score",
       "title": "Sur une échelle de 0 à 10, quelle est la probabilité que vous recommandiez notre produit à un ami ou à un collègue?",
       "rateMax": 10,
       "minRateDescription": {
        "default": "Very unlikely",
        "fr": "Très improbable"
       },

where it should say

 {
       "type": "rating",
       "name": "nps-score",
        "title": {
            "default": "Sur une échelle de 0 à 10, quelle est la probabilité que vous recommandiez notre produit à un ami ou à un collègue?",
            "fr": "Sur une échelle de 0 à 10, quelle est la probabilité que vous recommandiez notre produit à un ami ou à un collègue?"
           },
       "rateMax": 10,
       "minRateDescription": {
        "default": "Very unlikely",
        "fr": "Très improbable"
       },

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

Tested page URL: Codesandbox: https://codesandbox.io/s/peaceful-hooks-4btwyp?file=/src/App.tsx

Specify your

  • browser: NA
  • editor version: 1.9.77
JaneSjs wrote this answer on 2023-03-18

Hello @JosephBrooksbank,
Please accept my apoligies for the delayed reply. I tested your sample, but didn't reproduce the issue: title transations for the default and Fr locales remain the same:
image
image
image

The updated example is available at https://codesandbox.io/s/priceless-bassi-q4j99o?file=/src/survey.ts.

Please let me know if I missed anything important.

JosephBrooksbank wrote this answer on 2023-03-18

How did you accomplish that? If I open your example and set the title of the question in the designer again, the behavior I'm describing happens. Here is a gif of the process.
sametranslations

JosephBrooksbank wrote this answer on 2023-03-28

Hi, updates on this?

More Details About Repo
Owner Name surveyjs
Repo Name survey-creator
Full Name surveyjs/survey-creator
Language TypeScript
Created Date 2015-12-22
Updated Date 2023-03-30
Star Count 683
Watcher Count 29
Fork Count 308
Issue Count 301

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date