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/routes/invoice | |
| parent | b1843d46dd406f6f7a657ab680407644f096e2c3 (diff) | |
| download | coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.tar.gz coinos-ui-0ebb60f986682ad8d3538c2fd1d708a861e0b1fb.zip | |
migrate to sveltekit-i18n
Diffstat (limited to 'src/routes/invoice')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index f42aba04..67105831 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -6,7 +6,7 @@ import { goto } from '$app/navigation'; import { onMount } from 'svelte'; import { copy } from '$lib/utils'; - import { _, number } from 'svelte-i18n'; + import { t } from '$lib/translations'; export let data; $: ({ amount, id, rate, status, text, username } = data); @@ -151,7 +151,7 @@ ? 'bottom-0' : '-top-full'} bg-white p-6 md:p-0 rounded-t-3xl md:rounded-none left-0 md:static text-center space-y-5" > - <h1 class="hidden md:block text-4xl font-semibold">{$_('invoice.addTipq')}</h1> + <h1 class="hidden md:block text-4xl font-semibold">{$t('invoice.addTipq')}</h1> <div> <span class="font-semibold mr-1">{tipAmountFormatted}</span><span @@ -246,7 +246,7 @@ stroke-linejoin="round" /> </svg> - {$_('invoice.addTip')} + {$t('invoice.addTip')} </button> <span class="text-secondary block" @@ -293,13 +293,13 @@ {:else} <div class="text-center mt-20 md:mt-0"> <Image image="success" style="w-full md:w-3/4 xl:w-1/2 mx-auto max-w-3xl" /> - <h1 class="text-3xl md:text-4xl font-bold mb-6">{$_('invoice.paymentSuccessful')}</h1> + <h1 class="text-3xl md:text-4xl font-bold mb-6">{$t('invoice.paymentSuccessful')}</h1> <h2 class="text-2xl md:text-3xl font-semibold"> {totalAmountFormatted} </h2> <h3 class="text-secondary md:text-lg mb-6 mt-1">({totalAmountSats} SAT)</h3> <button class="bg-black text-white rounded-2xl w-20 py-3 font-bold" on:click={handleDoneClick}> - {$_('invoice.done')} + {$t('invoice.done')} </button> </div> {/if} |
