Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- import { setupI18n, isLocaleLoaded } from './services/i18n';
- // ...
- $: if (!$isLocaleLoaded) {
- setupI18n({ withLocale: 'en' });
- }
- </script>
- <!-- ... -->
- {#if $isLocaleLoaded}
- <Header />
- <main role="main">
- <MovieGrid />
- </main>
- <Footer />
- {:else}
- <p>Loading...</p>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement