mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 05:43:03 -05:00
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:
@@ -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 }}>
|
||||
|
||||
Reference in New Issue
Block a user