feat: Ajout de la traduction du titre dans la vue d'un scrore
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Simon 2024-02-15 09:33:57 +01:00
parent d6c1992e11
commit 79a0ab2a1a
1 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,10 @@ function formatScore(score) {
};
});
}
const title = score ? score.title : "";
function getTranslation(translations, key) {
return translations.find((translation) => translation[key] == store.language);
}
const title = score ? getTranslation(score.translations, "languages_id").title : "";
const questions = ref(formatScore(score));
const scoreSum = computed(() => {