nåt slags paraglide proof of concept

This commit is contained in:
botvid johansson 2025-02-06 22:56:29 +01:00
parent d8cff612e3
commit e4f636334d
3 changed files with 10 additions and 3 deletions

4
src/app.d.ts vendored
View File

@ -1,8 +1,12 @@
import type { AvailableLanguageTag } from "../../lib/paraglide/runtime"
import type { ParaglideLocals } from "@inlang/paraglide-sveltekit"
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Locals {
paraglide: ParaglideLocals<AvailableLanguageTag>,
user: import('$lib/server/auth').SessionValidationResult['user'];
session: import('$lib/server/auth').SessionValidationResult['session'];
}

View File

@ -5,6 +5,7 @@
import * as Dialog from '$lib/components/ui/dialog';
import { Input } from '$lib/components/ui/input';
import { Label } from '$lib/components/ui/label';
import * as m from '$lib/paraglide/messages.js';
import Import from './import/import.svelte';
export let open;

View File

@ -1,3 +1,5 @@
import * as runtime from '$lib/paraglide/runtime';
import { createI18n } from '@inlang/paraglide-sveltekit';
export const i18n = createI18n(runtime);
// file initialized by the Paraglide-SvelteKit CLI - Feel free to edit it
import { createI18n } from "@inlang/paraglide-sveltekit"
import * as runtime from "$lib/paraglide/runtime.js"
export const i18n = createI18n(runtime)