diff options
Diffstat (limited to 'src/components/FaqCard.svelte')
| -rw-r--r-- | src/components/FaqCard.svelte | 12 |
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> |
