aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FaqCard.svelte
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-08-18 16:48:21 -0500
committerAdrien Hopkins <[email protected]>2022-08-18 16:48:21 -0500
commitbfb25df2c09c4121bf77ff243f12c1b2714ac88e (patch)
tree3e5263be8228984dbd23bfc6d278b2eba7f8e084 /src/components/FaqCard.svelte
parent9d9cc8ee5ddaa583de8216aa3d4db515c54e6430 (diff)
downloadcoinos-ui-bfb25df2c09c4121bf77ff243f12c1b2714ac88e.tar.gz
coinos-ui-bfb25df2c09c4121bf77ff243f12c1b2714ac88e.zip
Extracted all strings from the main page into en.json
Diffstat (limited to 'src/components/FaqCard.svelte')
-rw-r--r--src/components/FaqCard.svelte12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/FaqCard.svelte b/src/components/FaqCard.svelte
index 3ebd7f45..3e855e42 100644
--- a/src/components/FaqCard.svelte
+++ b/src/components/FaqCard.svelte
@@ -1,11 +1,15 @@
<script>
- export let question;
- export let answer;
+ import { _ } from 'svelte-i18n';
+
+ // this ID will be used to get the strings from the locale
+ // question is at faq.[questionID].question
+ // answer is at faq.[questionID].answer
+ export let questionID;
</script>
<div class="mx-auto w-full md:w-2/3 lg:w-[700px] space-y-5">
- <p class="text-2xl font-medium">{question}</p>
+ <p class="text-2xl font-medium">{$_('faq.' + questionID + '.question')}</p>
<p class="text-secondary text-xl font-medium">
- {answer}
+ {$_('faq.' + questionID + '.answer')}
</p>
</div>