You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
517 B

  1. import type { Metadata } from "next";
  2. import { detectLanguage } from "@/i18n";
  3. import ThemeRegistry from "@/theme/ThemeRegistry";
  4. export const metadata: Metadata = {
  5. title: "TSMS",
  6. description: "TSMS - Timesheet Management System",
  7. };
  8. export default async function RootLayout({
  9. children,
  10. }: {
  11. children: React.ReactNode;
  12. }) {
  13. const lang = await detectLanguage();
  14. return (
  15. <html lang={lang}>
  16. <body>
  17. <ThemeRegistry lang={lang}>{children}</ThemeRegistry>
  18. </body>
  19. </html>
  20. );
  21. }