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

Implement answers #7

Open
raucao opened this issue Oct 7, 2013 · 0 comments
Open

Implement answers #7

raucao opened this issue Oct 7, 2013 · 0 comments
Labels

Comments

@raucao
Copy link
Member

raucao commented Oct 7, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant