From 7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 10 Oct 2022 00:42:33 +0800 Subject: refactor/fix: Small refactors/fixes, update imports --- code/app/src/routes/(main)/+layout.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'code/app/src/routes/(main)/+layout.ts') diff --git a/code/app/src/routes/(main)/+layout.ts b/code/app/src/routes/(main)/+layout.ts index 5d0e005..491ea1f 100644 --- a/code/app/src/routes/(main)/+layout.ts +++ b/code/app/src/routes/(main)/+layout.ts @@ -6,10 +6,6 @@ import { setLocale } from '$lib/i18n/i18n-svelte' export const load: LayoutLoad<{ locale: Locales }> = async ({ data: { locale } }) => { // load dictionary into memory await loadLocaleAsync(locale) - - // if you need to output a localized string in a `load` function, - // you always need to call `setLocale` right before you access the `LL` store setLocale(locale) - // pass locale to the "rendering context" return { locale } } \ No newline at end of file -- cgit v1.3