From: Ruben Beltran del Rio Date: Mon, 12 Apr 2021 13:42:43 +0000 (+0200) Subject: Allow for conditional reply X-Git-Url: https://git.r.bdr.sh/rbdr/forum/commitdiff_plain/63c3da2af27fcfb1a9893ade03543e3a30949c8d?ds=inline Allow for conditional reply --- diff --git a/src/components/header/header.svelte b/src/components/header/header.svelte index ed91526..c68a685 100644 --- a/src/components/header/header.svelte +++ b/src/components/header/header.svelte @@ -1,6 +1,7 @@ @@ -8,7 +9,9 @@ diff --git a/src/components/language_selector/language_selector.svelte b/src/components/language_selector/language_selector.svelte index 67c0814..3ac4894 100644 --- a/src/components/language_selector/language_selector.svelte +++ b/src/components/language_selector/language_selector.svelte @@ -3,9 +3,9 @@ import { getLangNameFromCode } from 'language-name-map'; $: namedLocales = $locales - .map((locale) => ({ - code: locale, - ...getLangNameFromCode(locale) + .map((code) => ({ + code, + ...getLangNameFromCode(code) })) .sort((a, b) => a.native - b.native); diff --git a/src/pages/t/[id].svelte b/src/pages/t/[topic_id].svelte similarity index 61% rename from src/pages/t/[id].svelte rename to src/pages/t/[topic_id].svelte index e13fd04..8ead8f3 100644 --- a/src/pages/t/[id].svelte +++ b/src/pages/t/[topic_id].svelte @@ -1,6 +1,6 @@ - +