From c51d8939caf682a67efc940cb16684229eaebb4f Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 2 Oct 2024 18:13:13 -0700 Subject: [PATCH] fix: cleaned up paraglide imports --- src/hooks.server.ts | 2 +- src/lib/components/select/language.svelte | 2 +- src/routes/+page.svelte | 2 +- src/routes/[network]/(explorer)/block/[number]/+page.svelte | 2 +- .../contract/[contract]/structs/[struct]/+page.svelte | 2 +- .../(explorer)/contract/[contract]/structs/[struct]/+page.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 394f38257..a066b93aa 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -1,7 +1,7 @@ import { sequence } from '@sveltejs/kit/hooks'; import type { Handle, RequestEvent } from '@sveltejs/kit'; -import { availableLanguageTags } from './lib/paraglide/runtime'; +import { availableLanguageTags } from '$lib/paraglide/runtime.js'; import { i18n } from '$lib/i18n'; import { isNetworkShortName } from '$lib/wharf/chains'; diff --git a/src/lib/components/select/language.svelte b/src/lib/components/select/language.svelte index 86c9aa150..a00eaa9bf 100644 --- a/src/lib/components/select/language.svelte +++ b/src/lib/components/select/language.svelte @@ -1,7 +1,7 @@ diff --git a/src/routes/[network]/(explorer)/block/[number]/+page.svelte b/src/routes/[network]/(explorer)/block/[number]/+page.svelte index 8b69c7f2b..e19d33280 100644 --- a/src/routes/[network]/(explorer)/block/[number]/+page.svelte +++ b/src/routes/[network]/(explorer)/block/[number]/+page.svelte @@ -1,6 +1,6 @@ diff --git a/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.svelte index 77f8a7724..27ffd76cf 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.svelte @@ -16,7 +16,7 @@ title={m.contract_struct_view_title({ struct: data.struct })} subtitle={m.contract_struct_view_description({ struct: data.struct, - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name })} /> diff --git a/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.ts b/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.ts index ed99caed7..0abc51cfc 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.ts +++ b/src/routes/[network]/(explorer)/contract/[contract]/structs/[struct]/+page.ts @@ -1,5 +1,5 @@ import type { PageLoad } from './$types'; -import * as m from '../../../../../../../lib/paraglide/messages'; +import * as m from '$lib/paraglide/messages.js'; import { error } from '@sveltejs/kit'; export const load: PageLoad = async ({ params, parent }) => {