fix: add missing i18n text in components

* Affects ActionButtonFooter, ChallengeFooter, ClipboardCopy, SubscriptionForm, VideoButton components
* Adds new entries for each json file: buttons.email, buttons.clipboardCopy, challenge.footer.video, challenge.footer.upvoteAnswer
* Available in English and Spanish
This commit is contained in:
1fbr
2024-02-04 14:58:43 +00:00
parent 84d518f036
commit 82acb4dd6d
11 changed files with 41 additions and 8 deletions

View File

@@ -1,5 +1,8 @@
---
const { copyText } = Astro.props;
import { getEntry } from "astro:content";
const { copyText, lang } = Astro.props;
const { data } = await getEntry('i18n', lang);
---
<span class="copy-container">
@@ -32,7 +35,9 @@ const { copyText } = Astro.props;
d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"
></path></svg
>
<span class="tooltipText triangle">Copied!</span>
<span class="tooltipText triangle">
{data['buttons.clipboardCopy']}
</span>
</span>
<script define:vars={{ copyText }}>