cb77aef586
- Add i18next and related dependencies for translation support - Create locale files for English and Farsi languages - Implement i18n configuration and provider in layout - Set up route factory and constants for internationalized routes - Remove test button components and simplify main page
18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
// ... existing imports ...
|
|
|
|
async function getData() {
|
|
// Simulate a delay to show server-side data fetching
|
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
return { message: 'This data was fetched on the server!' };
|
|
}
|
|
|
|
export default async function Home() {
|
|
const data = await getData();
|
|
|
|
return (
|
|
<main className="flex min-h-screen flex-col items-center justify-between p-24 text-gray-300">
|
|
ssss
|
|
</main>
|
|
);
|
|
}
|