@sejhey/svelte-i18n
Version:
The SejHey i18n SDK for Svelte
13 lines (12 loc) • 511 B
TypeScript
import { SejheyI18n } from '@sejhey/core-web';
import type { ServerLoadEvent } from '@sveltejs/kit';
export interface SejHeyInitialProps {
serialized: any;
[key: string]: any;
}
/**
* Mimics Next.js getInitialProps.
* Call this from your page's load() to fetch serialized i18n and any additional props.
*/
export declare function getSejHeyInitialProps(sejHeyi18n: SejheyI18n, event: ServerLoadEvent, // SvelteKit load event
extraProps?: Record<string, any>): Promise<SejHeyInitialProps | undefined>;