text: import Layout from "../components/layouts/Layout";
  import NotFound from "../components/pages-not-found/NotFound";
  
  import Loading from "../components/pages/Loading";
  import Welcome from "../components/pages/Welcome";
  import Home from "../components/pages/Home";
  import About from "../components/pages/About";
  import Contact from "../components/pages/Contact";
  import Brand from "../components/pages/Brand";
  import Personnel from "../components/pages/Personnel";
  import News from "../components/pages/News";
  
  import NewsDetail from "../components/pages/Details/NewsDetail";
  
  const routes = [
      {
          path: '/',
          redirect: '/vi/welcome',
      },
      {
          path: '/:locale/',
          redirect: '/:locale/welcome',
      },
      {
          path: '/:locale/',
          component: Layout,
          children: [
              {
                  path: 'redirect/loading',
                  name: 'Loading',
                  component: Loading,
              },
              {
                  path: 'welcome',
                  name: 'Welcome',
                  component: Welcome,
              },
              {
                  path: 'home',
                  name: 'Home',
                  component: Home,
              },
              {
                  path: 'about-us',
                  name: 'About',
                  component: About,
              },
              {
                  path: 'contact',
                  name: 'Contact',
                  component: Contact,
              },
              {
                  path: 'brand/:brandSlug',
                  name: 'Brand',
                  component: Brand,
              },
              {
                  path: 'personnel/:positionSlug',
                  name: 'Personnel',
                  component: Personnel,
              },
              {
                  path: 'news',
                  name: 'News',
                  component: News,
              },
              {
                  path: 'news/:newsSlug',
                  name: 'NewsDetail',
                  component: NewsDetail,
              },
          ]
      },
      {
          path: '*',
          component: NotFound
      },
  ]
  
  export default routes;
  