<script>
  import { _ } from 'svelte-i18n';
  import { getPrompt } from '$lib/stores/prompt';
  import { goto } from '$app/navigation';

  export let locale

	$: prompt = getPrompt(locale);

  $: {
    if ($prompt) {
      goto(`/${locale.split('-')[0]}/${$prompt}`);
    }
  }
</script>

<article>
  <main>
    {$_('loading')}
  </main>
</article>
