feat: Ajout de la traduction du titre dans la vue d'un scrore
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d6c1992e11
commit
79a0ab2a1a
|
@ -58,8 +58,10 @@ function formatScore(score) {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function getTranslation(translations, key) {
|
||||||
const title = score ? score.title : "";
|
return translations.find((translation) => translation[key] == store.language);
|
||||||
|
}
|
||||||
|
const title = score ? getTranslation(score.translations, "languages_id").title : "";
|
||||||
const questions = ref(formatScore(score));
|
const questions = ref(formatScore(score));
|
||||||
|
|
||||||
const scoreSum = computed(() => {
|
const scoreSum = computed(() => {
|
||||||
|
|
Loading…
Reference in New Issue