Skip to content

Translation missing for question_choices #3411

@rfastolfe

Description

@rfastolfe

Describe the bug
In the requirements, the question_choices and their description fields are not translated.
Corresponding lines in code base are here : https://github.com/intuitem/ciso-assistant-community/blob/main/backend/scripts/convert_library_v2.py#L880

Furthermore, these fields are also not translated in the interface, cf this issue : #3410

To Reproduce
Steps to reproduce the behavior:

  1. Write a framework with locale en and containing the following columns inside an answers sheet : question_choices, description, question_choices[fr], description[fr]
  2. Run the convert_library_v2.py script
  3. See that the translation values are missing in the yaml file.

Expected behavior
Question_choices and their description fields should be localized

Temporary workaround
Don't use localization fields if you have question_choices, put the question_choices directly in the base fields and the localization you need the most.

Screenshots
Initial Excel file
Image

Problem in CISO Assistant
Image

Environment

  • OS: Windows 11
  • Browser Firefox version 147.0.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions