]> git.r.bdr.sh - rbdr/prompt/blob - src/lib/components/new_prompt.svelte
Correct typo
[rbdr/prompt] / src / lib / components / new_prompt.svelte
1 <script>
2 import { _ } from 'svelte-i18n';
3 import { getPrompt } from '$lib/stores/prompt';
4 import { goto } from '$app/navigation';
5
6 export let locale
7
8 $: prompt = getPrompt(locale);
9
10 $: {
11 if ($prompt) {
12 goto(`/${locale.split('-')[0]}/${$prompt}`);
13 }
14 }
15 </script>
16
17 <article>
18 <main>
19 {$_('loading')}
20 </main>
21 </article>