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 | 0ebb60f986682ad8d3538c2fd1d708a861e0b1fb (patch) | |
| tree | 7a824114c5fd70fe42758d35d215fefdec8a7599 /src/components/LandingHero.svelte | |
| parent | b1843d46dd406f6f7a657ab680407644f096e2c3 (diff) | |
| download | coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.tar.gz coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.zip | |
migrate to sveltekit-i18n
Diffstat (limited to 'src/components/LandingHero.svelte')
| -rw-r--r-- | src/components/LandingHero.svelte | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index 6553d271..1415692e 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -2,7 +2,7 @@ import { goto } from '$app/navigation'; import { Icon, Image } from '$comp'; import { user } from '$lib/store'; - import { _ } from 'svelte-i18n'; + import { t } from '$lib/translations'; </script> <div class="mt-[96.88px] md:mt-0"> @@ -10,17 +10,17 @@ <h1 class="text-5xl md:text-6xl lg:text-7xl 2xl:text-8xl font-medium text-center w-full md:w-3/4 lg:w-1/2 max-w-7xl mx-auto leading-tight" > - {$_('landing.header_before_icon')} + {$t('landing.header_before_icon')} <span class="relative"> - {$_('landing.header_with_icon')} + {$t('landing.header_with_icon')} <Icon icon="rays" style="absolute -top-16 left-5 md:left-8 lg:left-14 2xl:left-24" /> </span> - {$_('landing.header_after_icon')} + {$t('landing.header_after_icon')} </h1> <h2 class="text-center text-secondary w-full md:w-3/5 lg:w-2/5 max-w-3xl mx-auto text-xl leading-normal font-medium" > - {$_('landing.subheader')} + {$t('landing.subheader')} </h2> {#if !$user} <div class="flex justify-center"> @@ -28,7 +28,7 @@ class="bg-black text-white border rounded-full px-6 py-2 font-bold" on:click={() => goto('/register')} > - {$_('nav.startInSeconds')} + {$t('nav.startInSeconds')} </button> </div> {/if} |
