diff options
| author | Adam Soltys <[email protected]> | 2022-08-22 15:49:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-22 15:49:08 -0700 |
| commit | fba3b1db97ca738311e2f9de08d42bd72e491eaa (patch) | |
| tree | 8424b797a8384645c06617006da2bc6771992c14 /src/components/FaqCard.svelte | |
| parent | a90fbcf954287534b88e9760335eff15fd433488 (diff) | |
| download | coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.tar.gz coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.zip | |
migrate to sveltekit-i18n
Diffstat (limited to 'src/components/FaqCard.svelte')
| -rw-r--r-- | src/components/FaqCard.svelte | 6 |
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> |
