mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-26 00:32:11 +00:00
web/about: convert pages to translatable markdown
This commit is contained in:
10
web/src/routes/about/[page]/+page.svelte
Normal file
10
web/src/routes/about/[page]/+page.svelte
Normal file
@@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import locale from '$lib/i18n/locale';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
const component = import(`$i18n/${$locale}/about/${$page.params.page}.md`);
|
||||
</script>
|
||||
|
||||
{#await component then component}
|
||||
<svelte:component this={component.default} />
|
||||
{/await}
|
||||
Reference in New Issue
Block a user