From 38431710cfb1cc1ffd7297085d069be1328f083b Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Sun, 29 Aug 2021 21:49:37 +0200
Subject: Add project

---
 src/lib/components/new_prompt.svelte | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 src/lib/components/new_prompt.svelte

(limited to 'src/lib/components/new_prompt.svelte')

diff --git a/src/lib/components/new_prompt.svelte b/src/lib/components/new_prompt.svelte
new file mode 100644
index 0000000..f44ecf1
--- /dev/null
+++ b/src/lib/components/new_prompt.svelte
@@ -0,0 +1,21 @@
+<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>
-- 
cgit 

