diff --git a/docs/src/components/SubscriptionForm.astro b/docs/src/components/SubscriptionForm.astro index 42e006f..fc6ec59 100644 --- a/docs/src/components/SubscriptionForm.astro +++ b/docs/src/components/SubscriptionForm.astro @@ -1,5 +1,8 @@ --- -const { isNote } = Astro.props; +import { getEntry } from 'astro:content'; + +const { isNote, lang } = Astro.props; +const { data } = await getEntry('i18n', lang ?? 'en'); ---
@@ -13,7 +16,7 @@ const { isNote } = Astro.props; sp-tips="%7B%22required%22%3A%22Required%20field%22%2C%22wrong%22%3A%22Wrong%20email%22%7D" autocomplete="on" required="required">
- +
@@ -28,12 +31,12 @@ const { isNote } = Astro.props; - Notes + {data['subscription.note.title']}

-

This email will only be used for sending new challenges updates.

+

{data['subscription.note.description']}.

: -*This email will only be used for sending new challenges updates. +*{data['subscription.note.description']}. }