From 9010ee1ae8985e6b58b3901727d7bb418eea3ebf Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 19 Aug 2023 20:36:15 +0200 Subject: [PATCH] Localize faq path --- apps/client/src/app/app-routing.module.ts | 11 +++-- apps/client/src/app/app.component.html | 21 ++------- apps/client/src/app/app.component.ts | 15 ++++++ apps/client/src/app/core/auth.guard.ts | 4 +- .../overview/about-overview-page.component.ts | 1 + .../about/overview/about-overview-page.html | 2 +- apps/client/src/app/pages/faq/routes.ts | 10 ---- apps/client/src/locales/messages.de.xlf | 44 ++++++++++++------ apps/client/src/locales/messages.es.xlf | 44 ++++++++++++------ apps/client/src/locales/messages.fr.xlf | 44 ++++++++++++------ apps/client/src/locales/messages.it.xlf | 46 +++++++++++++------ apps/client/src/locales/messages.nl.xlf | 44 ++++++++++++------ apps/client/src/locales/messages.pt.xlf | 44 ++++++++++++------ apps/client/src/locales/messages.xlf | 45 ++++++++++++------ 14 files changed, 241 insertions(+), 134 deletions(-) delete mode 100644 apps/client/src/app/pages/faq/routes.ts 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 @@ -