diff --git a/packages/frontend/src/lib/i18n/locales/en.ts b/packages/frontend/src/lib/i18n/locales/en.ts index 85b8ad3..c9806f6 100644 --- a/packages/frontend/src/lib/i18n/locales/en.ts +++ b/packages/frontend/src/lib/i18n/locales/en.ts @@ -671,37 +671,54 @@ export default { last_updated: "Last updated: September 5, 2025", information: { title: "1. Information We Collect", - text: [ - "Personal Information: When you create an account, we collect information such as your email address, username, and profile information you choose to provide.", - "Content Information: We collect information about the content you upload, view, and interact with on our platform.", + items: [ + { + label: "Personal Information", + text: "When you create an account, we collect information such as your email address, username, and profile information you choose to provide.", + }, + { + label: "Content Information", + text: "We collect information about the content you upload, view, and interact with on our platform.", + }, ], }, information_use: { title: "2. How We Use Your Information", subtitle: "We use your information to:", - text: [ - "
diff --git a/packages/frontend/src/routes/admin/articles/new/+page.svelte b/packages/frontend/src/routes/admin/articles/new/+page.svelte index ed3916e..f89223a 100644 --- a/packages/frontend/src/routes/admin/articles/new/+page.svelte +++ b/packages/frontend/src/routes/admin/articles/new/+page.svelte @@ -151,6 +151,7 @@ class={`rounded-lg border border-border/40 bg-muted/20 p-4 overflow-auto prose prose-sm max-w-none prose-headings:text-foreground prose-p:text-muted-foreground min-h-96 ${editorTab === "write" ? "hidden sm:block" : ""}`} > {#if preview} + {@html preview} {:else}
diff --git a/packages/frontend/src/routes/legal/+page.svelte b/packages/frontend/src/routes/legal/+page.svelte
index 4742171..da0cb51 100644
--- a/packages/frontend/src/routes/legal/+page.svelte
+++ b/packages/frontend/src/routes/legal/+page.svelte
@@ -5,6 +5,9 @@
import { Separator } from "$lib/components/ui/separator";
import SexyBackground from "$lib/components/background/background.svelte";
import Meta from "$lib/components/meta/meta.svelte";
+ import en from "$lib/i18n/locales/en";
+
+ const legal = en.legal;
let activeTab = $state("privacy");
@@ -35,19 +38,19 @@
- {$_("legal.privacy.last_updated")}
- {legal.privacy.last_updated}
- {@html $_("legal.privacy.information.text.0")}
-
- {@html $_("legal.privacy.information.text.1")}
- {item.label}: {item.text} {$_("legal.privacy.information_use.subtitle")} {legal.privacy.information_use.subtitle}
- {$_("legal.privacy.information_sharing.subtitle")}
- {legal.privacy.information_sharing.subtitle}
- {@html $_("legal.privacy.security.text.0")}
- {legal.privacy.security.text} {$_("legal.privacy.rights.subtitle")} {legal.privacy.rights.subtitle}
- {$_("legal.terms.last_updated")}
- {legal.terms.last_updated}
- {@html $_("legal.terms.acceptance.text.0")}
- {legal.terms.acceptance.text}
- {@html $_("legal.terms.age.text.0")}
- {legal.terms.age.text} {$_("legal.terms.accounts.subtitle")} {legal.terms.accounts.subtitle}
- {$_("legal.terms.content.subtitle")}
- {legal.terms.content.subtitle} {$_("legal.terms.payment.subtitle")} {legal.terms.payment.subtitle}
- {@html $_("legal.terms.termination.text.0")}
- {legal.terms.termination.text}
- {$_("legal.community.description")}
- {legal.community.description}
- {@html $_("legal.community.values.text.0")}
- {legal.community.values.text}
- {@html $_("legal.community.enforcement.text.0")}
- {legal.community.enforcement.text}
- {$_("legal.cookie.description")}
- {legal.cookie.description}
- {@html $_("legal.cookie.what.text.0")}
- {legal.cookie.what.text}
- {@html $_("legal.cookie.types.essential.text.0")}
- {legal.cookie.types.essential.text} {$_("legal.cookie.managing.subtitle")} {legal.cookie.managing.subtitle}
- {@html $_("legal.cookie.managing.text.1")}
- {legal.cookie.managing.note}
- {@html $_("legal.cookie.third_party.text.0")}
- {legal.cookie.third_party.text}
- {$_("legal.questions_description")}
- {legal.questions_description}
- {$_("legal.privacy.information.title")}
-
+ {legal.privacy.information.title}
- {$_("legal.privacy.information_use.title")}
-
+ {legal.privacy.information_use.title}
- {@html $_("legal.privacy.information_use.text.0")}
+ {#each legal.privacy.information_use.items as item (item)}
+
- {$_("legal.privacy.information_sharing.title")}
+ {legal.privacy.information_sharing.title}
- {@html $_("legal.privacy.information_sharing.text.0")}
+ {#each legal.privacy.information_sharing.items as item (item)}
+
- {$_("legal.privacy.security.title")}
-
- {legal.privacy.security.title}
+
- {$_("legal.privacy.rights.title")}
-
+ {legal.privacy.rights.title}
- {@html $_("legal.privacy.rights.text.0")}
+ {#each legal.privacy.rights.items as item (item)}
+
- {$_("legal.terms.acceptance.title")}
-
- {legal.terms.acceptance.title}
+
- {$_("legal.terms.age.title")}
-
- {legal.terms.age.title}
+
- {$_("legal.terms.accounts.title")}
-
+ {legal.terms.accounts.title}
- {@html $_("legal.terms.accounts.text.0")}
+ {#each legal.terms.accounts.items as item (item)}
+
- {$_("legal.terms.content.title")}
-
+ {legal.terms.content.title}
- {@html $_("legal.terms.content.text.0")}
+ {#each legal.terms.content.items as item (item)}
+
- {$_("legal.terms.payment.title")}
-
+ {legal.terms.payment.title}
- {@html $_("legal.terms.payment.text.0")}
+ {#each legal.terms.payment.items as item (item)}
+
- {$_("legal.terms.termination.title")}
-
- {legal.terms.termination.title}
+
- {$_("legal.community.values.title")}
-
- {legal.community.values.title}
+
- {$_("legal.community.respect.title")}
-
-
- {@html $_("legal.community.respect.text.0")}
-
- {legal.community.respect.title}
+
+ {#each legal.community.respect.items as item (item)}
+
- {$_("legal.community.standards.title")}
-
-
- {@html $_("legal.community.standards.text.0")}
-
- {legal.community.standards.title}
+
+ {#each legal.community.standards.items as item (item)}
+
- {$_("legal.community.interaction.title")}
-
-
- {@html $_("legal.community.interaction.text.0")}
-
- {legal.community.interaction.title}
+
+ {#each legal.community.interaction.items as item (item)}
+
- {$_("legal.community.enforcement.title")}
-
- {legal.community.enforcement.title}
+
- {$_("legal.cookie.what.title")}
-
- {legal.cookie.what.title}
+
- {$_("legal.cookie.types.title")}
-
+ {legal.cookie.types.title}
- {$_("legal.cookie.types.essential.title")}
-
- {legal.cookie.types.essential.title}
+
- {$_("legal.cookie.managing.title")}
-
+ {legal.cookie.managing.title}
- {@html $_("legal.cookie.managing.text.0")}
+ {#each legal.cookie.managing.items as item (item)}
+
-
- {$_("legal.cookie.third_party.title")}
-
- {legal.cookie.third_party.title}
+
- {$_("legal.questions")}
-
-