12 lines
481 B
TypeScript
12 lines
481 B
TypeScript
import fs from "node:fs/promises";
|
|
import path from "node:path";
|
|
import { TranslationsClient } from "../translations-client";
|
|
|
|
export default async function CmsTranslationsPage() {
|
|
const messagesDir = path.join(process.cwd(), "messages");
|
|
const enContent = await fs.readFile(path.join(messagesDir, "en.json"), "utf-8");
|
|
const itContent = await fs.readFile(path.join(messagesDir, "it.json"), "utf-8");
|
|
|
|
return <TranslationsClient enJson={enContent} itJson={itContent} />;
|
|
}
|