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
|
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||||
// for information about these interfaces
|
// for information about these interfaces
|
||||||
declare global {
|
declare global {
|
||||||
namespace App {
|
namespace App {
|
||||||
interface Locals {
|
interface Locals {
|
||||||
|
paraglide: ParaglideLocals<AvailableLanguageTag>,
|
||||||
|
|
||||||
user: import('$lib/server/auth').SessionValidationResult['user'];
|
user: import('$lib/server/auth').SessionValidationResult['user'];
|
||||||
session: import('$lib/server/auth').SessionValidationResult['session'];
|
session: import('$lib/server/auth').SessionValidationResult['session'];
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
import * as Dialog from '$lib/components/ui/dialog';
|
import * as Dialog from '$lib/components/ui/dialog';
|
||||||
import { Input } from '$lib/components/ui/input';
|
import { Input } from '$lib/components/ui/input';
|
||||||
import { Label } from '$lib/components/ui/label';
|
import { Label } from '$lib/components/ui/label';
|
||||||
|
import * as m from '$lib/paraglide/messages.js';
|
||||||
|
|
||||||
import Import from './import/import.svelte';
|
import Import from './import/import.svelte';
|
||||||
export let open;
|
export let open;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
import * as runtime from '$lib/paraglide/runtime';
|
// file initialized by the Paraglide-SvelteKit CLI - Feel free to edit it
|
||||||
import { createI18n } from '@inlang/paraglide-sveltekit';
|
import { createI18n } from "@inlang/paraglide-sveltekit"
|
||||||
export const i18n = createI18n(runtime);
|
import * as runtime from "$lib/paraglide/runtime.js"
|
||||||
|
|
||||||
|
export const i18n = createI18n(runtime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user