aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FaqCard.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-22 15:49:08 -0700
committerAdam Soltys <[email protected]>2022-08-22 15:49:08 -0700
commit0ebb60f986682ad8d3538c2fd1d708a861e0b1fb (patch)
tree7a824114c5fd70fe42758d35d215fefdec8a7599 /src/components/FaqCard.svelte
parentb1843d46dd406f6f7a657ab680407644f096e2c3 (diff)
downloadcoinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.tar.gz
coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.zip
migrate to sveltekit-i18n
Diffstat (limited to 'src/components/FaqCard.svelte')
-rw-r--r--src/components/FaqCard.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/FaqCard.svelte b/src/components/FaqCard.svelte
index 0d3a9fa7..918e03d6 100644
--- a/src/components/FaqCard.svelte
+++ b/src/components/FaqCard.svelte
@@ -1,5 +1,5 @@
<script>
- import { _ } from 'svelte-i18n';
+ import { t } from '$lib/translations';
// this ID will be used to get the strings from the locale
// question is at faq.[questionID].question
@@ -8,8 +8,8 @@
</script>
<div class="mx-auto w-full md:w-2/3 lg:w-[700px] space-y-5">
- <p class="text-2xl font-medium">{$_('faq.' + questionID + '.question')}</p>
+ <p class="text-2xl font-medium">{$t('faq.' + questionID + '.question')}</p>
<p class="text-secondary text-xl font-medium">
- {$_('faq.' + questionID + '.answer')}
+ {$t('faq.' + questionID + '.answer')}
</p>
</div>