import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'solar:book-2-bold',
      order: 1001,
      title: $t('page.language.title'),
      authority: ['super', 'AC9001', 'AC9002', 'AC9003', 'AC9004', 'AC9005'],
    },
    name: 'Translate',
    path: '/translate',
    children: [  
      {
        name: 'Language',
        path: '/language',
        component: () => import('#/views/language/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lets-icons:order',
          title: $t('page.language.translationList'),
          authority: ['super', 'AC9001', 'AC9002', 'AC9003', 'AC9004', 'AC9005'],
        },
      }
      
    ],
  },
];

export default routes;
