style: clean up code with prettier and eslint
This commit is contained in:
1 parent
60278b9e71
commit
fb8e77bb68
378 files changed
+22407
-20689
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import path from 'node:path'
|
||||
import { TranslationsClient } from '../translations-client'
|
||||
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')
|
||||
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} />
|
||||
return <TranslationsClient enJson={enContent} itJson={itContent} />;
|
||||
}
|
||||
Reference in new issue
Block a user