Guest User

Untitled

a guest
Oct 23rd, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. import { setupI18n, isLocaleLoaded } from './services/i18n';
  3.  
  4. // ...
  5.  
  6. $: if (!$isLocaleLoaded) {
  7. setupI18n({ withLocale: 'en' });
  8. }
  9. </script>
  10.  
  11. <!-- ... -->
  12.  
  13. {#if $isLocaleLoaded}
  14. <Header />
  15.  
  16. <main role="main">
  17. <MovieGrid />
  18. </main>
  19.  
  20. <Footer />
  21. {:else}
  22. <p>Loading...</p>
  23. {/if}
RAW Paste Data