mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-16 11:31:49 +01:00
Improved locales handling
This commit is contained in:
@ -6,8 +6,8 @@
|
||||
{ label: 'Repository', url: 'https://github.com/NotXia/imaging' }
|
||||
]">
|
||||
|
||||
<p class="text-center">{{ t("unibo") }}</p>
|
||||
<p>{{ t('description') }}</p>
|
||||
<p class="text-center">{{ t("unibo_21-22") }}</p>
|
||||
<p>{{ t('imaging.description') }}</p>
|
||||
</ProjectCard>
|
||||
</template>
|
||||
|
||||
@ -16,19 +16,7 @@
|
||||
import ProjectCard from "../ProjectCard.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import image from "@/assets/images/projects/imaging.png";
|
||||
import locale from "@/locales/projects";
|
||||
|
||||
const { t } = useI18n({ messages: {
|
||||
en: {
|
||||
unibo: "University of Bologna, A.Y. 2021-2022",
|
||||
description:
|
||||
"Project for the Numerical Computing course.\n" +
|
||||
"Image deblurring solved as a minimization problem."
|
||||
},
|
||||
it: {
|
||||
unibo: "Università di Bologna, A.A. 2021-2022",
|
||||
description:
|
||||
"Progetto per il corso di Calcolo Numerico.\n" +
|
||||
"Deblurring di immagini risolto come problema di minimizzazione."
|
||||
}
|
||||
} });
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
Reference in New Issue
Block a user