aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-16 10:57:55 -0600
committersecondl1ght <[email protected]>2022-08-16 10:57:55 -0600
commitb4571f158b44acae39b06a1963c9c1fa8a068a65 (patch)
tree85dd4e6cda881f7b0971e6da8784362e5af6785b /src
parent3bf5b86bc0032660bdbf464cee2bde584e9e3ba7 (diff)
downloadcoinos-ui-b4571f158b44acae39b06a1963c9c1fa8a068a65.tar.gz
coinos-ui-b4571f158b44acae39b06a1963c9c1fa8a068a65.zip
wait on locale load to render app
Diffstat (limited to 'src')
-rw-r--r--src/routes/__layout.svelte9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte
index 158397c5..c5234c7d 100644
--- a/src/routes/__layout.svelte
+++ b/src/routes/__layout.svelte
@@ -1,3 +1,12 @@
+<script context="module">
+ import { waitLocale } from 'svelte-i18n'
+
+ export async function preload() {
+ // awaits for the loading of the 'en-US' and 'en' dictionaries
+ return waitLocale()
+ }
+</script>
+
<script>
import { SvelteToast } from '@zerodevx/svelte-toast';
import '../app.css';