Skip to content

Toolbox - Translate Default choice definitions #7397

@JaneSjs

Description

@JaneSjs

T26263 - German translation for survey creator
https://surveyjs.answerdesk.io/internal/ticket/details/T26263


https://github.com/surveyjs/survey-creator/blob/0f6e64913c3ceb1d981018f4f998ce4ca3a1a09f/packages/survey-creator-core/src/creator-settings.ts#L116C6-L130C9

I suggest adding a localization string which would define a choice's text. A choice's value should remain hardcoded, such as "item1", "item2", etc.

settings.toolbox.defaultJSON = {
  dropdown: {
    choices: [
      { value: "item1", text: "localization-string-for-option1" },
      { value: "item2", text: "localization-string-for-option2" },
      { value: "item3", text: "localization-string-for-option3" },
    ],
  },
  //...
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions