House rules also machine translated and added loadrules universal lib

This commit is contained in:
2025-09-15 17:46:34 +03:00
parent a9f33e9ec0
commit 5771581013
6 changed files with 255 additions and 37 deletions

View File

@@ -3,6 +3,7 @@ import ReactMarkdown, { Components } from "react-markdown";
import { vipnagorgialla } from "@/components/Vipnagorgialla";
import SectionDivider from "@/components/SectionDivider";
import { getTranslations, setRequestLocale } from "next-intl/server";
import { loadRulesBun } from "@/lib/loadRules";
export default async function Page({
params,
@@ -12,8 +13,7 @@ export default async function Page({
const { locale } = await params;
setRequestLocale(locale);
const t = await getTranslations({ locale });
const file = Bun.file("src/data/kodukord.md");
const content = await file.text();
const content = await loadRulesBun("kodukord", locale as "et" | "en");
return (
<div>