diff --git a/src/components/Score.vue b/src/components/Score.vue index 3175b32..b6ef393 100644 --- a/src/components/Score.vue +++ b/src/components/Score.vue @@ -61,7 +61,8 @@ function formatScore(score) { function getTranslation(translations, key) { return translations.find((translation) => translation[key] == store.language); } -const title = score ? getTranslation(score.translations, "languages_id").title : ""; +const trad = getTranslation(score.translations, "languages_id") +const title = score ? trad.title : ""; const questions = ref(formatScore(score)); const scoreSum = computed(() => { @@ -154,15 +155,6 @@ async function share() { saveAs(dataUrl, `Ceiba-score-${fileName}.png`); sharing.value = false; } -const trad = store.language == "fr-FR" ? { - "failure": "Probabilité d'échec", - "params": "Rappel des paramètres choisis", - "sigle": "PdE", -} : { - "failure": "Likelihood of Failure", - "params": "Chosen parameters", - "sigle": "LoF", -}