project-nomad/admin/inertia/pages/docs/show.tsx
Martin Seener 134d1642af
Added initial i18n framework and most german translations
- Add i18next, react-i18next, i18next-browser-languagedetector packages
- Configure i18n initialization with language detector in lib/i18n.ts
- Created en/de translation files and moved most hard-coded strings into the files and translated them
- Uses locale-aware date formatting where applicable
- Added language-specific Wikipedia content files (wikipedia.en.json, wikipedia.de.json) and updated download URLs
- Added NOMAD_REPO_URL env variable for fork-friendly URL resolution (easier testing and rollout independent of Crosstalk repo)
2026-03-24 13:21:31 +01:00

20 lines
567 B
TypeScript

import { Head } from '@inertiajs/react'
import { useTranslation } from 'react-i18next'
import MarkdocRenderer from '~/components/MarkdocRenderer'
import DocsLayout from '~/layouts/DocsLayout'
export default function Show({ content }: { content: any; }) {
const { t } = useTranslation()
return (
<DocsLayout>
<Head title={t('docs.title')} />
<div className="xl:pl-80 pt-14 xl:pt-8 pb-8 px-6 sm:px-8 lg:px-12">
<div className="max-w-4xl">
<MarkdocRenderer content={content} />
</div>
</div>
</DocsLayout>
)
}