From 0ebb60f986682ad8d3538c2fd1d708a861e0b1fb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 22 Aug 2022 15:49:08 -0700 Subject: migrate to sveltekit-i18n --- src/routes/invoice/[id]/+page.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/routes/invoice') 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" > -

{$_('invoice.addTipq')}

+

{$t('invoice.addTipq')}

{tipAmountFormatted} - {$_('invoice.addTip')} + {$t('invoice.addTip')} -

{$_('invoice.paymentSuccessful')}

+

{$t('invoice.paymentSuccessful')}

{totalAmountFormatted}

({totalAmountSats} SAT)

{/if} -- cgit v1.2.3