FBDevCLagos / hiddenwisdom-api

7 stars 2 forks source link

Proverb Translations #37

Closed sofiengwin closed 7 years ago

sofiengwin commented 8 years ago

The current implementation of translations uses self join association. We want to separate translations to a different table. The JSON data coming from the front-end will look like this.

{"proverb":{ "body": "Proverb body", "langunage": "english", "tags": ["widom", "life", "opportunity"], "translations": [ {"body": "Yoruba proverb", "langunage": "yoruba" }, {"body": "Igbo proverb", "language": "igbo" } ] }}

Create a new translation for each translation in the translations array.

betkom commented 7 years ago

@andela-gogbara Is this the same as what I'm working on? cos it lacks a description

sofiengwin commented 7 years ago

@andela-tkomolafe Yes, this is the story. Sorry for not adding a description earlier.

sofiengwin commented 7 years ago

Fixed by https://github.com/FBDevCLagos/hiddenwisdom-api/pull/44