Skip to content

Implement answers #7

@raucao

Description

@raucao

At some point we want to show answers to phrases in addition to the explanation.

First, we need to move the current answers to the language key, so that this:

{
  swahili: "Mambo",
  luganda: "Oli otya",
  lugbara: "Mi ngoni",
  english: "How are you?",
  // answer: ["Poa - Cool", "Niko poa - I'm fine", luganda "Gyendi" lugbara "mamuke"],
  explanation: "maybe the most common greeting to start a great conversation"
}

... turns into something like this:

{
  swahili: {
     p: "Mambo",
     a: ["Poa - Cool", "Niko poa - I'm fine"]
  },
  luganda: {
     p: "Oli otya",
     a: ["Gyendi"]
  },
  lugbara: {
     p: "Mi ngoni",
     a: ["Mamuke"]
  },
  english: "How are you?",
  explanation: "maybe the most common greeting to start a great conversation"
}

When doing that, we then obviously need to change how the templates are rendered and the data for them is gathered a little bit.

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