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

Add question translation feature 🇬🇧 #15

Open
viconnex opened this issue Oct 21, 2022 · 0 comments
Open

Add question translation feature 🇬🇧 #15

viconnex opened this issue Oct 21, 2022 · 0 comments

Comments

@viconnex
Copy link
Owner

viconnex commented Oct 21, 2022

Feature Request

Today a question may be shared between two question sets.
For example "thé ou café" may be related to TheodoFR and TheodoUS.
But actually this question is duplicated in two questions :

- {id: 1, option1: "thé", option2: "café"}
- {id: 2, option1: "tea", option2: "coffee"}

Which is quite painful for two reasons :

  • for data reason : if you want to analyze people preference, you have to merge both solutions
  • admin of TheodoUS or TheodoUK must duplicate questions instead of just translate them
  • if a user switches its questionSet, the user will have to answer the same question again

Possible solution

  • add two columns to the question entity option1EN, option2EN
{id: 1, option1: "thé", option2: "café", option1EN: "tea", option2EN: "coffee"}
  • send these properties on questions/all, questions/asaskai endpoint (+ bonus : admin)
  • fronend :
    • if getLocale results to EN and option1EN/option2EN are defined, display them, otherwise display option1 / option2
  • si getLocale renvoie EN, afficher option1EN ou option1 si option1EN non définie
  • in admin question edit view, enable to fill option1EN, option2EN
@viconnex viconnex changed the title Add translation for questions Add translations of questions Oct 21, 2022
@viconnex viconnex changed the title Add translations of questions 🇬🇧 Add question translation feature Oct 21, 2022
@viconnex viconnex changed the title 🇬🇧 Add question translation feature Add question translation feature 🇬🇧 Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant