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

Composite question types: Inherited localizable properties are duplicated in Survey Creator's Translation tab #8238

Closed
JaneSjs opened this issue May 6, 2024 · 0 comments · Fixed by #8239
Assignees
Labels
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented May 6, 2024

** Updated **
Serializer.getPropertiesByObj returns duplicated properties for "country" object instance. The issue is i the library.

View Demo

Survey.ComponentCollection.Instance.add({
    name: "country",
     defaultQuestionTitle: {
        en: "Default title",
        de: "Standardtitel",
        fr: "Titre par défaut"
    },
    inheritBaseProps: ["description"],
    questionJSON: {
        type: "dropdown",
        description:  {
            en: "Custom Question",
            de: "Aangepaste vraag",
            fr: "Question personnalisée"
        },
        placeholder: "Select a country...",
        choicesByUrl: {
            url: "https://surveyjs.io/api/CountriesExample",
        },
    },
});

If you inherit a description base property and define its translation, the description appears in a Translation tab and is duplicated.
image

  • Please clarify whether the description should appear in the Translation tab;
  • It should not be duplicated.

The original inquiry is T18038 - Compsite questions and translation. A customer asked how to enable translation for individual composite question's titles.

@JaneSjs JaneSjs added the bug label May 6, 2024
@andrewtelnov andrewtelnov self-assigned this May 6, 2024
@andrewtelnov andrewtelnov transferred this issue from surveyjs/survey-creator May 6, 2024
andrewtelnov added a commit that referenced this issue May 6, 2024
tsv2013 pushed a commit that referenced this issue May 6, 2024
@RomanTsukanov RomanTsukanov changed the title Descriptions of a composite component's fields appear duplicated in the Translation tab Composite question types: Inherited localizable properties are duplicated in Survey Creator's Translation tab May 7, 2024
@OlgaLarina OlgaLarina added this to the v1.10.3 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants