import fs from "node:fs/promises"; import path from "node:path"; import { TranslationsClient } from "../translations-client"; const LOCALES = ["en", "it", "nl", "de", "fr", "es", "pt", "pl", "sv"] as const; export default async function CmsTranslationsPage() { const messagesDir = path.join(process.cwd(), "messages"); const contents: Record = {}; await Promise.all( LOCALES.map(async (locale) => { contents[locale] = await fs.readFile(path.join(messagesDir, `${locale}.json`), "utf-8"); }), ); return ; }