FPSMS-frontend
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.
 
 

27 lines
614 B

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