Translate .md files

This commit is contained in:
MartinBraquet
2025-12-27 12:51:47 +02:00
parent b6df79b836
commit c7d58905b5
17 changed files with 593 additions and 112 deletions

View File

@@ -0,0 +1,13 @@
'use client'
import MarkdownPage, {MD_PATHS} from 'web/components/markdown'
import {useMarkdown} from "web/hooks/use-markdown"
type Props = {
filename: typeof MD_PATHS[number]
}
export function MarkdownPageLoader({filename}: Props) {
const content = useMarkdown(filename)
return <MarkdownPage content={content} filename={filename}/>
}

View File

@@ -5,9 +5,18 @@ import {SEO} from "web/components/SEO";
import {capitalize} from "lodash";
import {CustomLink} from "web/components/links";
export const MD_PATHS = [
'constitution',
'faq',
'financials',
'members',
'support',
'tips-bio',
] as const
type Props = {
content: string;
filename: string;
filename: typeof MD_PATHS[number];
};
export const CustomMarkdown = ({children}: { children: string }) => {