mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2026-08-05 21:32:23 +00:00
Improved locales handling
This commit is contained in:
@@ -44,23 +44,9 @@
|
||||
import Work from "./sections/Work.vue";
|
||||
import Other from "./sections/Other.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
import pdf_image from "@/assets/images/icons/pdf.svg";
|
||||
import cv_it from "@/assets/cv/it.pdf";
|
||||
import cv_en from "@/assets/cv/en.pdf";
|
||||
import cv_it_color from "@/assets/cv/it_color.pdf";
|
||||
import cv_en_color from "@/assets/cv/en_color.pdf";
|
||||
|
||||
const { t } = useI18n({ messages: {
|
||||
"en": {
|
||||
"cv_link": cv_en,
|
||||
"cv_link_color": cv_en_color,
|
||||
"with_colors": "but colored"
|
||||
},
|
||||
"it": {
|
||||
"cv_link": cv_it,
|
||||
"cv_link_color": cv_it_color,
|
||||
"with_colors": "ma colorato"
|
||||
}
|
||||
} });
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
@@ -1,89 +0,0 @@
|
||||
export default ({
|
||||
"en": {
|
||||
"education": "Education",
|
||||
"working experience": "Work experience",
|
||||
"certificates": "Certificates",
|
||||
"skills": "Skills",
|
||||
"other": "Other activities",
|
||||
"link to certificate": "Link to certificate",
|
||||
"future": "What will happen?",
|
||||
|
||||
"january": "January", "february": "February", "march": "March", "april": "April", "may": "May", "june": "June",
|
||||
"july": "July", "august": "August", "september": "September", "october": "October", "november": "November", "december": "December",
|
||||
"m_1": "Jan", "m_2": "Feb", "m_3": "Mar", "m_4": "Apr", "m_5": "May", "m_6": "June",
|
||||
"m_7": "July", "m_8": "Aug", "m_9": "Sept", "m_10": "Oct", "m_11": "Nov", "m_12": "Dec",
|
||||
"present": "present",
|
||||
|
||||
"final degree": "Final degree",
|
||||
"with honors": "with honors",
|
||||
"bs in cs": "Bachelor's Degree in Computer Science",
|
||||
"unibo": "Alma Mater Studiorum, University of Bologna",
|
||||
"diploma": "High school diploma, major in IT",
|
||||
"aldini": "Aldini Valeriani, Bologna, Italy",
|
||||
"web development": "Web development",
|
||||
"devops": "DevOps",
|
||||
"data analysis": "Data analysis",
|
||||
"other programming languages": "Other programming languages",
|
||||
|
||||
"cisco it essentials description": "Maintenance and administration of IT systems.\n" +
|
||||
"Configuration and management of network devices.",
|
||||
"cs50 ai description": "Problem solving through algorithms based on graphs, statistics, optimization and machine learning.",
|
||||
|
||||
|
||||
"pcto toyota": "IT/IS Office, Internship",
|
||||
"pcto toyota description": "Internship organized during high school.\n" +
|
||||
"IT support, maintenance and initial setup of network devices.\n" +
|
||||
"SQL programming, automation with bash and batch scripts.",
|
||||
|
||||
"ois": "Informatics Olympiad in Teams",
|
||||
"ois description": "Team based programming competition.",
|
||||
|
||||
"MAST foundation": "MAST Foundation",
|
||||
"MAST expeditions description": "Design and implementation of an IOT box with Flip & Click programmable microcontrollers and " +
|
||||
"Zerynth Studio development environment."
|
||||
},
|
||||
"it": {
|
||||
"education": "Istruzione",
|
||||
"working experience": "Esperienze lavorative",
|
||||
"certificates": "Certificati",
|
||||
"skills": "Competenze",
|
||||
"other": "Altre attività",
|
||||
"link to certificate": "Link al certificato",
|
||||
"future": "Chissà cosa succederà",
|
||||
|
||||
"january": "Gennaio", "february": "Febbraio", "march": "Marzo", "april": "Aprile", "may": "Maggio", "june": "Giugno",
|
||||
"july": "Luglio", "august": "Agosto", "september": "Settembre", "october": "Ottobre", "november": "Novembre", "december": "Dicembre",
|
||||
"m_1": "Gen", "m_2": "Feb", "m_3": "Mar", "m_4": "Apr", "m_5": "Mag", "m_6": "Giu",
|
||||
"m_7": "Lug", "m_8": "Ago", "m_9": "Set", "m_10": "Ott", "m_11": "Nov", "m_12": "Dic",
|
||||
"present": "in corso",
|
||||
|
||||
"final degree": "Valutazione finale",
|
||||
"with honors": "e lode",
|
||||
"bs in cs": "Laurea Triennale in Informatica",
|
||||
"unibo": "Alma Mater Studiorum, Università di Bologna",
|
||||
"diploma": "Diploma di perito informatico",
|
||||
"aldini": "I.T.I Aldini Valeriani, Bologna",
|
||||
"web development": "Sviluppo web",
|
||||
"devops": "DevOps",
|
||||
"data analysis": "Data analysis",
|
||||
"other programming languages": "Altri linguaggi di programmazione",
|
||||
|
||||
"cisco it essentials description": "Manutenzione e amministrazione di sistemi informatici.\n" +
|
||||
"Configurazione e gestione di apparati di rete.",
|
||||
"cs50 ai description": "Risoluzione di problemi con algoritmi basati su grafi, statistica, ottimizzazione e machine learning.",
|
||||
|
||||
|
||||
"pcto toyota": "Ufficio IT/IS, Stage",
|
||||
"pcto toyota description": "Percorsi per le Competenze Trasversali e per l'Orientamento (PCTO)\n" +
|
||||
"Attività di helpdesk, manutenzione e configurazione di apparati di rete.\n" +
|
||||
"Programmazione SQL, automazioni con script bash e batch.",
|
||||
|
||||
|
||||
"ois": "Olimpiadi di informatica a squadre",
|
||||
"ois description": "Programmazione competitiva a squadre.",
|
||||
|
||||
"MAST foundation": "Fondazione MAST",
|
||||
"MAST expeditions description": "Progettazione e realizzazione di una scatola IOT attraverso l'utilizzo di schede programmabili Flip & Click e " +
|
||||
"l'ambiente di sviluppo Zerynth Studio."
|
||||
}
|
||||
});
|
||||
@@ -17,8 +17,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ActivityParagraph from "../components/ActivityParagraph.vue";
|
||||
import locale from "../locale.js";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: locale});
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
@@ -15,8 +15,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ActivityParagraph from "../components/ActivityParagraph.vue";
|
||||
import locale from "../locale.js";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
@@ -49,19 +49,12 @@
|
||||
<script setup lang="ts">
|
||||
import Timeline from "@/components/timeline/Timeline.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import locale from "../locale.js";
|
||||
import { initTooltips } from "flowbite";
|
||||
import { onMounted } from "vue";
|
||||
import { addFoundEasterEgg } from "@/utilities/easteregg_handler";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
const timeline_locale = locale;
|
||||
// @ts-ignore
|
||||
timeline_locale.en["like timelines"] = "I like timelines";
|
||||
// @ts-ignore
|
||||
timeline_locale.it["like timelines"] = "Mi piacciono le linee del tempo";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: timeline_locale});
|
||||
const { t } = useI18n({ messages: locale });
|
||||
|
||||
const january = 0, february = 1, march = 2, april = 3, may = 4, june = 5, july = 6, august = 7, september = 8, october = 9, november = 10, december = 11;
|
||||
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ActivityParagraph from "../components/ActivityParagraph.vue";
|
||||
import locale from "../locale.js";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: locale});
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
@@ -75,7 +75,7 @@
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ActivityParagraph from "../components/ActivityParagraph.vue";
|
||||
import ProgrammingLogo from "../components/ProgrammingLogo.vue";
|
||||
import locale from "../locale.js";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
import nodejs_logo from "@/assets/images/icons/nodejs.svg";
|
||||
import php_logo from "@/assets/images/icons/php.svg";
|
||||
@@ -109,6 +109,5 @@
|
||||
import python_logo from "@/assets/images/icons/python.svg";
|
||||
import cpu_logo from "@/assets/images/icons/cpu.svg";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
@@ -13,8 +13,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ActivityParagraph from "../components/ActivityParagraph.vue";
|
||||
import locale from "../locale.js";
|
||||
import locale from "@/locales/resume";
|
||||
|
||||
// @ts-ignore
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
Reference in New Issue
Block a user