Skip to content

Commit

Permalink
fixed locales and answers page
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Jun 11, 2024
1 parent 917a4be commit 6fe16e5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,26 @@ const ProgrammeLevelAnswers = () => {
: []
return (
<div key={question.id} style={{ marginBottom: '1em' }}>
<div>{question.label[lang]}</div>
<div>
<h3>{question.label[lang]}</h3>
<div>{t('actionProposals')}:</div>
{question.actions.map(action => {
return (
<div key={action.name[lang]}>
{action.number}: {action.name[lang]}
</div>
)
})}
</div>
<h3>{t('answers')}:</h3>
{questionAnswers.length > 0 ? (
questionAnswers.map(answer => (
<div key={answer.programme}>
{answer.programme}: {answer.data[`${question.id}_text`]}
</div>
))
) : (
<div>No answers available</div>
<div>{t('noAnswers')}</div>
)}
</div>
)
Expand Down
7 changes: 0 additions & 7 deletions client/questionData/metaReview.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,6 @@
"en": "....",
"se": "...."
}
},
{
"id": 2,
"number": 2,
"name": {
"fi": "Toimenpide uno dos tres"
}
}
],
"level": "tohtori",
Expand Down
2 changes: 2 additions & 0 deletions client/util/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export default {
metaevaluation: 'Meta review',
formCloses: 'Form closes at',
questionAnswers: 'Question / Anwers',
noAnswers: 'No answers',
actionProposals: 'Action proposals',
},

aboutPage: {
Expand Down
2 changes: 2 additions & 0 deletions client/util/locales/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export default {
metaevaluation: 'Katselmuksen arviointi',
formCloses: 'Lomake sulkeutuu',
questionAnswers: 'Vastaukset kysymyksittäin',
noAnswers: 'Ei vastauksia',
actionProposals: 'Toimenpide-ehdotukset',
},

aboutPage: {
Expand Down
2 changes: 2 additions & 0 deletions client/util/locales/se.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export default {
metaevaluation: 'Översyns översyn',
formCloses: 'Formuläret stängs',
questionAnswers: 'Svar per fråga',
noAnswers: 'No answers',
actionProposals: 'Action proposals',
},

aboutPage: {
Expand Down

0 comments on commit 6fe16e5

Please sign in to comment.