Initial commit
This commit is contained in:
13
src/routes/+layout.ts
Normal file
13
src/routes/+layout.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type {LayoutLoad} from './$types';
|
||||
import {loadTranslations} from "$lib/translations";
|
||||
|
||||
export const prerender = true;
|
||||
|
||||
export const load: LayoutLoad = async ({ url }) => {
|
||||
const { pathname } = url;
|
||||
|
||||
const initLocale = 'ru';
|
||||
|
||||
await loadTranslations(initLocale, pathname);
|
||||
return {};
|
||||
}
|
||||
Reference in New Issue
Block a user