nåt slags paraglide proof of concept
This commit is contained in:
parent
d8cff612e3
commit
e4f636334d
4
src/app.d.ts
vendored
4
src/app.d.ts
vendored
@ -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'];
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user