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

A question description doesn't appear on a design surface when the 'locale' key is defined at the end of a survey JSON #7765

Closed
JaneSjs opened this issue Jan 30, 2024 · 0 comments · Fixed by #7766
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 30, 2024

User Issue: T16580 - Description only displayed after language switch when no default text exists
https://surveyjs.answerdesk.io/internal/ticket/details/T16580


View Demo

{
  pages: [
    {
      name: "p1",
      elements: [
        {
          type: "dropdown",
          name: "question2",
          title: {
            de: "German title",
            en: "English question title",
          },
          description: {
            de: "German description",
            en: "English element description",
          },
          choices: ["Item 1", "Item 2", "Item 3"],
        },
      ],
    },
  ],
  locale: "de",
}

A question description is not rendered if the locale key appears at the end of a survey:
image

However, the description correctly appears in preview:
image

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jan 30, 2024
@andrewtelnov andrewtelnov transferred this issue from surveyjs/survey-creator Jan 30, 2024
@andrewtelnov andrewtelnov changed the title A question description doesn't appear on a design surface when the 'locale' key is defined at the end of a survey JSON A question description doesn't appear on a design surface when the 'locale' key is defined at the end of a survey JSON in Creator Jan 30, 2024
@andrewtelnov andrewtelnov changed the title A question description doesn't appear on a design surface when the 'locale' key is defined at the end of a survey JSON in Creator A question description doesn't appear on a design surface when the 'locale' key is defined at the end of a survey JSON Jan 30, 2024
andrewtelnov added a commit that referenced this issue Jan 30, 2024
…ocale' key is defined at the end of a survey JSON fix #7765
tsv2013 pushed a commit that referenced this issue Jan 30, 2024
…ocale' key is defined at the end of a survey JSON fix #7765 (#7766)
@OlgaLarina OlgaLarina added this to the v1.9.128 milestone Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants