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 = ""; -
-
- +
+
+
+ +
+ + + + + + +
+ - - - - - -