Skip to content

Commit

Permalink
fix: cleaned up paraglide imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 3, 2024
1 parent b23e3ae commit 28346f4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/select/language.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import { i18n } from '$lib/i18n';
import { availableLanguageTags, languageTag } from '$lib/paraglide/runtime';
import { availableLanguageTags, languageTag } from '$lib/paraglide/runtime.js';
import { createSelect, melt } from '@melt-ui/svelte';
import { fade } from 'svelte/transition';
import ChevronDown from 'lucide-svelte/icons/chevron-down';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as m from '$lib/paraglide/messages';
import Button from '$lib/components/button/button.svelte';
import { Box, Stack } from '$lib/components/layout';
import { languageTag } from '../lib/paraglide/runtime';
import { languageTag } from '$lib/paraglide/runtime.js';
import { chainShortNames } from '$lib/wharf/chains';
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { PageData } from './$types';
import * as m from '../../../../../lib/paraglide/messages.js';
import * as m from '$lib/paraglide/messages.js';
export let data: PageData;
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
})}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -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 }) => {
Expand Down

0 comments on commit 28346f4

Please sign in to comment.