fix: localize self-hosting prerequisites

This commit is contained in:
suyua9
2026-04-03 23:53:57 +08:00
parent eb7812761b
commit c8d6fdf321
18 changed files with 126 additions and 4 deletions
+7 -4
View File
@@ -1,5 +1,6 @@
import Link from "next/link";
import Image from "next/image";
import { getTranslations } from "next-intl/server";
import { Server, Database, Key, Palette, Globe, Settings, Cpu } from "lucide-react";
import DeepWikiIcon from "@/../public/deepwiki.svg";
import Context7Icon from "@/../public/context7.svg";
@@ -17,7 +18,9 @@ export const metadata = {
description: "Deploy your own prompts.chat instance with customizable branding, themes, and authentication",
};
export default function SelfHostingPage() {
export default async function SelfHostingPage() {
const t = await getTranslations("selfHosting");
return (
<div className="container max-w-4xl py-10">
<h1 className="text-2xl font-bold mb-2">Self-Hosting Guide</h1>
@@ -110,9 +113,9 @@ export default function SelfHostingPage() {
Prerequisites
</h3>
<ul className="list-disc list-inside text-muted-foreground space-y-1">
<li>Node.js 24.x</li>
<li>PostgreSQL database</li>
<li>npm</li>
<li>{t("prerequisites.nodeJs")}</li>
<li>{t("prerequisites.postgresql")}</li>
<li>{t("prerequisites.npm")}</li>
</ul>
</div>