Skip to content

Commit 97f968c

Browse files
committed
Prepare /privacy for localization
1 parent 533144b commit 97f968c

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

src/lib/lang/en/privacy.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"pagename": "Privacy",
3+
"header": "Privacy Policy",
4+
"tagline": "We don't want or need your cookies.",
5+
"cookieimage.alttext": "Cookies from Irasutoya",
6+
"description": "We only use [Plausible Analytics](https://plausible.io/) for statistics purposes and do not use any cookies or collect personal information.\n\nYou can read more about how Plausible collects analytics [on their official website](https://plausible.io/data-policy).\n\nHowever, pages that include iframes like YouTube embeds may use additional trackers. By visiting these pages you agree to [YouTube's privacy policy](https://support.google.com/youtube/answer/10364219)."
7+
}

src/lib/lang/localizationIndex.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
{
1010
"key": "about",
1111
"routes": ["/about"]
12+
},
13+
{
14+
"key": "privacy",
15+
"routes": ["/privacy"]
1216
}
1317
]

src/routes/privacy/+page.svelte

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,30 @@
22
import type { PageData } from './$types';
33
44
export let data: PageData;
5+
6+
import { t } from '$lib/translations';
7+
const pageTitle = $t(
8+
"common.sitetitle",
9+
{
10+
sitename: $t("common.watsonindustries"),
11+
pagename: $t("privacy.pagename")
12+
} as any // TS moment
13+
);
14+
15+
import { parse } from "marked";
516
</script>
617

718
<svelte:head>
8-
<title>Watson Industries - Privacy</title>
19+
<title>{pageTitle}</title>
920
</svelte:head>
1021

1122
<div class="bg-primary">
1223
<div class="flex flex-col mx-8 md:mx-36 lg:mx-72 xl:mx-96 text-accent pb-5">
13-
<h1 class="text-5xl text-center my-2 mt-2 font-norwester py-4">Privacy Policy</h1>
14-
<p class="my-2 text-xl text-center">
15-
We don't want or need your cookies.
16-
<img src="https://1.bp.blogspot.com/-8_iInJA-VGo/UgSMUzbH8tI/AAAAAAAAXBk/rfI8OGB16n8/s400/sweets_cookie.png" class="mx-auto my-4" alt="Cookies from Irasutoya" />
17-
We only use <a href="https://plausible.io/" class="underline">Plausible Analytics</a> for statistics purposes and do not use any cookies or collect personal information.
18-
<br>
19-
You can read more about how Plausible collect analytics <a href="https://plausible.io/data-policy" class="underline">on their official website.</a>
20-
<br>
21-
However, certain pages that include iframes like Youtube embeds might use additional trackers. By visiting these pages you agree to <a href="https://support.google.com/youtube/answer/10364219" class="underline">Youtube's privacy policies</a>.
24+
<h1 class="text-5xl text-center my-2 mt-2 font-norwester py-4">{$t("privacy.header")}</h1>
25+
<p class="my-2 text-xl text-center [&>p>a]:underline">
26+
{$t("privacy.tagline")}
27+
<img src="https://1.bp.blogspot.com/-8_iInJA-VGo/UgSMUzbH8tI/AAAAAAAAXBk/rfI8OGB16n8/s400/sweets_cookie.png" class="mx-auto my-4" alt={$t("privacy.cookieimage.alttext")} />
28+
{@html parse($t("privacy.description"))}
2229
</p>
2330
</div>
2431
</div>

0 commit comments

Comments
 (0)