import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CategoryComponent } from './category.component';
import { I18nComponent } from './i18n.component';
import { TestComponent } from './test.component';
import { TranslateComponent } from './translate.component';


const routes: Routes = [{
  path: '',
  children: [
    { path: 'category', component: CategoryComponent, },
    { path: 'translate', component: TranslateComponent, },
    { path: 'i18n', component: I18nComponent, },
    { path: 'test', component: TestComponent, },
    { path: '**', redirectTo: 'category' }
  ]
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ContentRoutingModule { }
