From ed2c8a46574eed73485df09a86b2cd0f8f239171 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Thu, 29 Jan 2026 02:37:03 +0100 Subject: [PATCH] multi lang CV with link --- src/routes/cv/+page.svelte | 9 ++++- src/routes/cv/comps/LeftTopDecor.svelte | 46 ++++++++++++++++--------- src/ts/Redaction/Profile.ts | 1 + 3 files changed, 39 insertions(+), 17 deletions(-) diff --git a/src/routes/cv/+page.svelte b/src/routes/cv/+page.svelte index e5b1609..53cd469 100644 --- a/src/routes/cv/+page.svelte +++ b/src/routes/cv/+page.svelte @@ -31,11 +31,16 @@ // Check if the query parameter exists in the URL const urlParams = new URLSearchParams(window.location.search); const hideOnPrintParam = urlParams.get("hideOnPrint"); + const locale = urlParams.get("locale"); // If the query parameter is not detected, reload the page with the parameter added if (!hideOnPrintParam) { window.location.href = `${window.location.href}${window.location.href.indexOf("?") > 0 ? "&" : "?"}hideOnPrint=1`; } + + if (locale && locale != getLocale()) { + setLocale(locale); + } }); function getFormattedDate(): string { @@ -49,7 +54,9 @@
- {$re?.name ?? "Alex"}'s CV {getFormattedDate()} + {$re?.name ?? "Alex"}'s {getLocale().toUpperCase()} CV {getFormattedDate()} + import { getLocale, setLocale, locales } from "$paraglide/runtime"; + import re from "@ts/Redaction/Redactor"; + import RepeatedSkills from "./RepeatedSkills.svelte"; // Cedit @@ -8,21 +11,32 @@ export let Class = ""; -
-
- +
+
+
+ +
+ + + + + + +
+ - - - - - -