import { localeMap } from 'intlayer'; // Utility functions and types from 'intlayer' import type { FC, PropsWithChildren } from 'react'; // React types for functional components and props import { IntlayerProvider } from 'react-intlayer'; // Provider for internationalization context import { BrowserRouter, Route, Routes } from 'react-router-dom'; // Router components for managing navigation /** * A router component that sets up locale-specific routes. * It uses React Router to manage navigation and render localized components. */ export const LocaleRouter: FC = ({ children }) => ( {localeMap(({ locale, urlPrefix }) => ( {children} } // Wraps children with locale management /> ))} );