Improved locales handling

This commit is contained in:
2023-03-19 12:14:10 +01:00
parent c5a5d44b04
commit 8585575320
46 changed files with 360 additions and 388 deletions
+2 -22
View File
@@ -29,29 +29,9 @@
import { shouldShowCookie, acceptCookie, refuseCookie } from "@/utilities/cookie_handler";
import { useI18n } from "vue-i18n";
import { addFoundEasterEgg } from "@/utilities/easteregg_handler";
import locale from "@/locales/cookie";
const { t } = useI18n({ messages: {
"en": {
"cookie policy title": "Cookie policy",
"cookie policy": "This website uses cookies but not for analysis purposes and they are not sent to third parties. " +
"The only cookies here are those that I ate this morning, although I prefer a savory breakfast. " +
"I don't know why you are reading this, but thanks for keeping me company, I wish you a great day. " +
"If you would like some cookies too, do not hesitate to click on the following link:",
"cookie policy link": "Click here to read the policy",
"accept": "Accept",
"reject": "Reject"
},
"it": {
"cookie policy title": "Informativa cookie",
"cookie policy": "Questo sito utilizza cookie ma non per fini di profilazione e non sono inviati a terze parti. " +
"Gli unici cookie presenti sono quelli che ho mangiato questa mattina, anche se in realtà preferisco una colazione salata. " +
"Non so perché stai leggendo questo, ma ti ringrazio per avermi fatto compagnia e ti auguro una buona giornata. " +
"Se gradisci dei biscotti, non esitare a cliccare l'informativa al seguente link:",
"cookie policy link": "Clicca qui per l'informativa cookie",
"accept": "Accetta",
"reject": "Rifiuta"
}
} });
const { t } = useI18n({ messages: locale });
const container_cookie = ref();
const canvas_cookie = ref();