diff options
| author | Adam Soltys <[email protected]> | 2023-05-02 14:09:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-05-02 14:09:51 -0700 |
| commit | 7f3dc05c74586f4777c4a51ebf2c831da91c6c0c (patch) | |
| tree | 687beb156c8654b1b4fc3a63955ece6c65a1844e /src/routes/+layout.js | |
| parent | 89b13556338c9a31e4d911decd4c67ce0fe6790b (diff) | |
| download | coinos-ui-7f3dc05c74586f4777c4a51ebf2c831da91c6c0c.tar.gz coinos-ui-7f3dc05c74586f4777c4a51ebf2c831da91c6c0c.zip | |
nfc wip
Diffstat (limited to 'src/routes/+layout.js')
| -rw-r--r-- | src/routes/+layout.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/routes/+layout.js b/src/routes/+layout.js deleted file mode 100644 index add74f87..00000000 --- a/src/routes/+layout.js +++ /dev/null @@ -1,8 +0,0 @@ -import { loadTranslations, locale } from '$lib/translations'; -export const load = async ({ url }) => { - const { pathname } = url; - const defaultLocale = 'en'; // get from cookie, user session, ... - const initLocale = locale.get() || defaultLocale; // set default if no locale already set - await loadTranslations(initLocale, pathname); // keep this just before the `return` - return {}; -}; |
