import type { RouteRecordRaw } from 'vue-router'
import AboutView from './pages/about-us/index.vue'
import ContactView from './pages/ContactView.vue'
import HomeView from './pages/HomeView.vue'
import ProductsView from './pages/ProductsView.vue'

export const routes: RouteRecordRaw[] = [
	{
		path: '/:lang?',
		children: [
			{
				path: '',
				component: HomeView,
				alias: ['/:lang?', '/:lang?/home'],

			},
			{
				path: 'about',
				component: AboutView,
			},
			{
				path: 'products',
				name: 'products',
				component: ProductsView,
			},
			{
				path: 'contact',
				name: 'contact',
				component: ContactView,
			},
		],
	},
]
