---
title: "Comment by David Brutt on \"Typesafe i18n with SvelteKit\" | Hashnode"
description: "Hi. Great article. Saved me time. I would like to ask you why you added await loadLocaleAsync(locale); setLocale(locale); In the Hook.server and in Layout.ts as"
url: "https://hashnode.com/posts/typesafe-i18n-with-sveltekit/63bc196214626743de083639/comment/668d04ab35ae494fe84a738b"
---

[Discussion](https://hashnode.com/posts/typesafe-i18n-with-sveltekit/63bc196214626743de083639)

Comment [Typesafe i18n with SvelteKit](https://hashnode.com/posts/typesafe-i18n-with-sveltekit/63bc196214626743de083639)

[David Brutt](https://hashnode.com/@DBrutte)

[Jul 9, 2024](https://hashnode.com/posts/typesafe-i18n-with-sveltekit/63bc196214626743de083639/comment/668d04ab35ae494fe84a738b)

Hi. Great article. Saved me time. I would like to ask you why you added

await loadLocaleAsync(locale);

setLocale(locale);

In the Hook.server and in Layout.ts

as I checked adding this code at Layout.ts should do the work.

Am I missing here something?
