import type { RouteRecordRaw } from 'vue-router' import AboutView from './pages/about-us/index.vue' import ContactView from './pages/ContactView.vue' import HomeView from './pages/home/index.vue' import ProductsView from './pages/ProductsView.vue' export const routes: RouteRecordRaw[] = [ { path: '/:lang(en|zh-cn|zh-tw)?', children: [ { path: '', component: HomeView, }, { path: 'about', component: AboutView }, { path: 'products', name: 'products', component: ProductsView }, { path: 'contact', name: 'contact', component: ContactView }, { path: 'aida', name: 'Aida', component: () => import('./pages/aida/index.vue') } ] } ]