diff --git a/apps/client/src/app/app-routing.module.ts b/apps/client/src/app/app-routing.module.ts index b5548afd4..4689b2ef9 100644 --- a/apps/client/src/app/app-routing.module.ts +++ b/apps/client/src/app/app-routing.module.ts @@ -1,7 +1,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes, TitleStrategy } from '@angular/router'; import { routes as aboutRoutes } from '@ghostfolio/client/pages/about/routes'; -import { routes as faqRoutes } from '@ghostfolio/client/pages/faq/routes'; import { routes as featuresRoutes } from '@ghostfolio/client/pages/features/routes'; import { routes as marketsRoutes } from '@ghostfolio/client/pages/markets/routes'; import { routes as pricingRoutes } from '@ghostfolio/client/pages/pricing/routes'; @@ -11,6 +10,10 @@ import { PageTitleStrategy } from '@ghostfolio/client/services/page-title.strate import { ModulePreloadService } from './core/module-preload.service'; +export const paths = { + faq: $localize`faq` +}; + const routes: Routes = [ ...aboutRoutes.map((path) => ({ path, @@ -51,11 +54,11 @@ const routes: Routes = [ loadChildren: () => import('./pages/demo/demo-page.module').then((m) => m.DemoPageModule) }, - ...faqRoutes.map((path) => ({ - path, + { + path: paths.faq, loadChildren: () => import('./pages/faq/faq-page.module').then((m) => m.FaqPageModule) - })), + }, ...featuresRoutes.map((path) => ({ path, loadChildren: () => diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html index af40ec4fb..a318dc8b7 100644 --- a/apps/client/src/app/app.component.html +++ b/apps/client/src/app/app.component.html @@ -43,22 +43,7 @@ -