From f0df8a5254025f8759bfb33fb80f11ee4b07be57 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:54:00 +0200 Subject: [PATCH] Feature/add snake-case hint to localized routes (#3783) * Add snake-case hint to localized routes --- apps/client/src/app/app.component.ts | 28 +++++++++++-------- .../app/components/header/header.component.ts | 22 +++++++-------- ...scription-interstitial-dialog.component.ts | 2 +- .../user-account-membership.component.ts | 2 +- .../overview/about-overview-page.component.ts | 4 +-- .../hallo-ghostfolio-page.component.ts | 4 +-- .../hello-ghostfolio-page.component.ts | 4 +-- ...st-months-in-open-source-page.component.ts | 2 +- ...get-my-finances-in-order-page.component.ts | 2 +- .../500-stars-on-github-page.component.ts | 4 +-- .../black-friday-2022-page.component.ts | 4 +-- .../1000-stars-on-github-page.component.ts | 4 +-- ...otential-with-ghostfolio-page.component.ts | 4 +-- ...ploring-the-path-to-fire-page.component.ts | 2 +- ...tfolio-joins-oss-friends-page.component.ts | 5 +++- .../ghostfolio-2-page.component.ts | 11 +++++--- .../hacktoberfest-2023-page.component.ts | 2 +- .../black-week-2023-page.component.ts | 4 +-- ...oberfest-2023-debriefing-page.component.ts | 4 +-- .../overview/faq-overview-page.component.ts | 2 +- .../app/pages/faq/saas/saas-page.component.ts | 6 ++-- .../pages/features/features-page.component.ts | 4 +-- .../pages/landing/landing-page.component.ts | 4 +-- .../pages/pricing/pricing-page.component.ts | 4 +-- .../personal-finance-tools-page.component.ts | 2 +- .../product-page.component.ts | 6 ++-- .../resources/resources-page.component.ts | 4 +-- .../membership-card.component.ts | 2 +- 28 files changed, 80 insertions(+), 68 deletions(-) diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index fbc358590..44a554173 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -57,19 +57,25 @@ export class AppComponent implements OnDestroy, OnInit { public hasTabs = false; public info: InfoItem; public pageTitle: string; - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkAboutChangelog = ['/' + $localize`about`, 'changelog']; - public routerLinkAboutLicense = ['/' + $localize`about`, $localize`license`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkAboutChangelog = [ + '/' + $localize`:snake-case:about`, + 'changelog' + ]; + public routerLinkAboutLicense = [ + '/' + $localize`:snake-case:about`, + $localize`:snake-case:license` + ]; public routerLinkAboutPrivacyPolicy = [ - '/' + $localize`about`, - $localize`privacy-policy` + '/' + $localize`:snake-case:about`, + $localize`:snake-case:privacy-policy` ]; - public routerLinkFaq = ['/' + $localize`faq`]; - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkMarkets = ['/' + $localize`markets`]; - public routerLinkPricing = ['/' + $localize`pricing`]; - public routerLinkRegister = ['/' + $localize`register`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkFaq = ['/' + $localize`:snake-case:faq`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkMarkets = ['/' + $localize`:snake-case:markets`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; public showFooter = false; public user: User; diff --git a/apps/client/src/app/components/header/header.component.ts b/apps/client/src/app/components/header/header.component.ts index ff126da14..8909c15a4 100644 --- a/apps/client/src/app/components/header/header.component.ts +++ b/apps/client/src/app/components/header/header.component.ts @@ -75,17 +75,17 @@ export class HeaderComponent implements OnChanges { public hasPermissionToCreateUser: boolean; public impersonationId: string; public isMenuOpen: boolean; - public routeAbout = $localize`about`; - public routeFeatures = $localize`features`; - public routeMarkets = $localize`markets`; - public routePricing = $localize`pricing`; - public routeResources = $localize`resources`; - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkMarkets = ['/' + $localize`markets`]; - public routerLinkPricing = ['/' + $localize`pricing`]; - public routerLinkRegister = ['/' + $localize`register`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routeAbout = $localize`:snake-case:about`; + public routeFeatures = $localize`:snake-case:features`; + public routeMarkets = $localize`:snake-case:markets`; + public routePricing = $localize`:snake-case:pricing`; + public routeResources = $localize`:snake-case:resources`; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkMarkets = ['/' + $localize`:snake-case:markets`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.component.ts b/apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.component.ts index b33ce30a7..fb852c920 100644 --- a/apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.component.ts +++ b/apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.component.ts @@ -11,7 +11,7 @@ import { SubscriptionInterstitialDialogParams } from './interfaces/interfaces'; templateUrl: 'subscription-interstitial-dialog.html' }) export class SubscriptionInterstitialDialog { - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; public constructor( @Inject(MAT_DIALOG_DATA) public data: SubscriptionInterstitialDialogParams, diff --git a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts index e21a85418..c66f555b4 100644 --- a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts +++ b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts @@ -36,7 +36,7 @@ export class UserAccountMembershipComponent implements OnDestroy, OnInit { public hasPermissionToUpdateUserSettings: boolean; public price: number; public priceId: string; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; public snackBarRef: MatSnackBarRef; public trySubscriptionMail = 'mailto:hi@ghostfol.io?Subject=Ghostfolio Premium Trial&body=Hello%0D%0DI am interested in Ghostfolio Premium. Can you please send me a coupon code to try it for some time?%0D%0DKind regards'; diff --git a/apps/client/src/app/pages/about/overview/about-overview-page.component.ts b/apps/client/src/app/pages/about/overview/about-overview-page.component.ts index c07db433a..027eb132c 100644 --- a/apps/client/src/app/pages/about/overview/about-overview-page.component.ts +++ b/apps/client/src/app/pages/about/overview/about-overview-page.component.ts @@ -16,8 +16,8 @@ export class AboutOverviewPageComponent implements OnDestroy, OnInit { public hasPermissionForStatistics: boolean; public hasPermissionForSubscription: boolean; public isLoggedIn: boolean; - public routerLinkFaq = ['/' + $localize`faq`]; - public routerLinkFeatures = ['/' + $localize`features`]; + public routerLinkFaq = ['/' + $localize`:snake-case:faq`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; public user: User; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts index 7947d90b1..cc37ae805 100644 --- a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './hallo-ghostfolio-page.html' }) export class HalloGhostfolioPageComponent { - public routerLinkPricing = ['/' + $localize`pricing`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; } diff --git a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts index 18aceabe9..4e9943a27 100644 --- a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './hello-ghostfolio-page.html' }) export class HelloGhostfolioPageComponent { - public routerLinkPricing = ['/' + $localize`pricing`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; } diff --git a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts index e6ad7e41b..b543e04f2 100644 --- a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts @@ -10,5 +10,5 @@ import { RouterModule } from '@angular/router'; templateUrl: './first-months-in-open-source-page.html' }) export class FirstMonthsInOpenSourcePageComponent { - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; } diff --git a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts index ccca0f27c..abbfe8e37 100644 --- a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts @@ -10,5 +10,5 @@ import { RouterModule } from '@angular/router'; templateUrl: './how-do-i-get-my-finances-in-order-page.html' }) export class HowDoIGetMyFinancesInOrderPageComponent { - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; } diff --git a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts index eec7ce255..10150cf39 100644 --- a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './500-stars-on-github-page.html' }) export class FiveHundredStarsOnGitHubPageComponent { - public routerLinkMarkets = ['/' + $localize`markets`]; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkMarkets = ['/' + $localize`:snake-case:markets`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; } diff --git a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts index 5820104d9..c31605a65 100644 --- a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts @@ -12,6 +12,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './black-friday-2022-page.html' }) export class BlackFriday2022PageComponent { - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; } diff --git a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts index 55813dc29..2cb473cb9 100644 --- a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './1000-stars-on-github-page.html' }) export class ThousandStarsOnGitHubPageComponent { - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; } diff --git a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts index 4e7e602a2..478312648 100644 --- a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './unlock-your-financial-potential-with-ghostfolio-page.html' }) export class UnlockYourFinancialPotentialWithGhostfolioPageComponent { - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; } diff --git a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts index aaafcfc94..a51612e47 100644 --- a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts @@ -10,5 +10,5 @@ import { RouterModule } from '@angular/router'; templateUrl: './exploring-the-path-to-fire-page.html' }) export class ExploringThePathToFirePageComponent { - public routerLinkFeatures = ['/' + $localize`features`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; } diff --git a/apps/client/src/app/pages/blog/2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component.ts b/apps/client/src/app/pages/blog/2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component.ts index 682a1fdd8..945385eaa 100644 --- a/apps/client/src/app/pages/blog/2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component.ts @@ -10,5 +10,8 @@ import { RouterModule } from '@angular/router'; templateUrl: './ghostfolio-joins-oss-friends-page.html' }) export class GhostfolioJoinsOssFriendsPageComponent { - public routerLinkAboutOssFriends = ['/' + $localize`about`, 'oss-friends']; + public routerLinkAboutOssFriends = [ + '/' + $localize`:snake-case:about`, + 'oss-friends' + ]; } diff --git a/apps/client/src/app/pages/blog/2023/09/ghostfolio-2/ghostfolio-2-page.component.ts b/apps/client/src/app/pages/blog/2023/09/ghostfolio-2/ghostfolio-2-page.component.ts index 34d94857e..e6bf1a17c 100644 --- a/apps/client/src/app/pages/blog/2023/09/ghostfolio-2/ghostfolio-2-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/09/ghostfolio-2/ghostfolio-2-page.component.ts @@ -10,8 +10,11 @@ import { RouterModule } from '@angular/router'; templateUrl: './ghostfolio-2-page.html' }) export class Ghostfolio2PageComponent { - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkAboutChangelog = ['/' + $localize`about`, 'changelog']; - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkMarkets = ['/' + $localize`markets`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkAboutChangelog = [ + '/' + $localize`:snake-case:about`, + 'changelog' + ]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkMarkets = ['/' + $localize`:snake-case:markets`]; } diff --git a/apps/client/src/app/pages/blog/2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component.ts b/apps/client/src/app/pages/blog/2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component.ts index 614c681e8..719394fde 100644 --- a/apps/client/src/app/pages/blog/2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component.ts @@ -10,5 +10,5 @@ import { RouterModule } from '@angular/router'; templateUrl: './hacktoberfest-2023-page.html' }) export class Hacktoberfest2023PageComponent { - public routerLinkAbout = ['/' + $localize`about`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; } diff --git a/apps/client/src/app/pages/blog/2023/11/black-week-2023/black-week-2023-page.component.ts b/apps/client/src/app/pages/blog/2023/11/black-week-2023/black-week-2023-page.component.ts index f0c88cfd4..0c7334642 100644 --- a/apps/client/src/app/pages/blog/2023/11/black-week-2023/black-week-2023-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/11/black-week-2023/black-week-2023-page.component.ts @@ -12,6 +12,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './black-week-2023-page.html' }) export class BlackWeek2023PageComponent { - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; } diff --git a/apps/client/src/app/pages/blog/2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component.ts b/apps/client/src/app/pages/blog/2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component.ts index a2a6ebf0b..e825ff59a 100644 --- a/apps/client/src/app/pages/blog/2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component.ts @@ -10,6 +10,6 @@ import { RouterModule } from '@angular/router'; templateUrl: './hacktoberfest-2023-debriefing-page.html' }) export class Hacktoberfest2023DebriefingPageComponent { - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkFeatures = ['/' + $localize`features`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; } diff --git a/apps/client/src/app/pages/faq/overview/faq-overview-page.component.ts b/apps/client/src/app/pages/faq/overview/faq-overview-page.component.ts index f9abb8824..cb548c13b 100644 --- a/apps/client/src/app/pages/faq/overview/faq-overview-page.component.ts +++ b/apps/client/src/app/pages/faq/overview/faq-overview-page.component.ts @@ -11,7 +11,7 @@ import { Subject, takeUntil } from 'rxjs'; templateUrl: './faq-overview-page.html' }) export class FaqOverviewPageComponent implements OnDestroy { - public routerLinkFeatures = ['/' + $localize`features`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; public user: User; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/faq/saas/saas-page.component.ts b/apps/client/src/app/pages/faq/saas/saas-page.component.ts index b06a7dbd1..1d1a6dd61 100644 --- a/apps/client/src/app/pages/faq/saas/saas-page.component.ts +++ b/apps/client/src/app/pages/faq/saas/saas-page.component.ts @@ -11,9 +11,9 @@ import { Subject, takeUntil } from 'rxjs'; templateUrl: './saas-page.html' }) export class SaasPageComponent implements OnDestroy { - public routerLinkMarkets = ['/' + $localize`markets`]; - public routerLinkPricing = ['/' + $localize`pricing`]; - public routerLinkRegister = ['/' + $localize`register`]; + public routerLinkMarkets = ['/' + $localize`:snake-case:markets`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; public user: User; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/features/features-page.component.ts b/apps/client/src/app/pages/features/features-page.component.ts index 39ed6d38e..df2e5e520 100644 --- a/apps/client/src/app/pages/features/features-page.component.ts +++ b/apps/client/src/app/pages/features/features-page.component.ts @@ -26,8 +26,8 @@ import { Subject, takeUntil } from 'rxjs'; export class GfFeaturesPageComponent implements OnDestroy { public hasPermissionForSubscription: boolean; public info: InfoItem; - public routerLinkRegister = ['/' + $localize`register`]; - public routerLinkResources = ['/' + $localize`resources`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; + public routerLinkResources = ['/' + $localize`:snake-case:resources`]; public user: User; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/landing/landing-page.component.ts b/apps/client/src/app/pages/landing/landing-page.component.ts index ca8c0b420..3f9e45b94 100644 --- a/apps/client/src/app/pages/landing/landing-page.component.ts +++ b/apps/client/src/app/pages/landing/landing-page.component.ts @@ -23,8 +23,8 @@ export class LandingPageComponent implements OnDestroy, OnInit { public hasPermissionForStatistics: boolean; public hasPermissionForSubscription: boolean; public hasPermissionToCreateUser: boolean; - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkRegister = ['/' + $localize`register`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; public statistics: Statistics; public testimonials = [ { diff --git a/apps/client/src/app/pages/pricing/pricing-page.component.ts b/apps/client/src/app/pages/pricing/pricing-page.component.ts index b366f3d63..9eb0cf491 100644 --- a/apps/client/src/app/pages/pricing/pricing-page.component.ts +++ b/apps/client/src/app/pages/pricing/pricing-page.component.ts @@ -33,8 +33,8 @@ export class PricingPageComponent implements OnDestroy, OnInit { public isLoggedIn: boolean; public price: number; public priceId: string; - public routerLinkFeatures = ['/' + $localize`features`]; - public routerLinkRegister = ['/' + $localize`register`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; + public routerLinkRegister = ['/' + $localize`:snake-case:register`]; public user: User; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/resources/personal-finance-tools/personal-finance-tools-page.component.ts b/apps/client/src/app/pages/resources/personal-finance-tools/personal-finance-tools-page.component.ts index 596ac310e..6dfbe8a88 100644 --- a/apps/client/src/app/pages/resources/personal-finance-tools/personal-finance-tools-page.component.ts +++ b/apps/client/src/app/pages/resources/personal-finance-tools/personal-finance-tools-page.component.ts @@ -15,7 +15,7 @@ export class PersonalFinanceToolsPageComponent implements OnDestroy { public personalFinanceTools = personalFinanceTools.sort((a, b) => { return a.name.localeCompare(b.name, undefined, { sensitivity: 'base' }); }); - public routerLinkAbout = ['/' + $localize`about`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; private unsubscribeSubject = new Subject(); diff --git a/apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts b/apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts index 76fe7eb97..ea14bbc6b 100644 --- a/apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts +++ b/apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -21,10 +21,10 @@ export class GfProductPageComponent implements OnInit { public price: number; public product1: Product; public product2: Product; - public routerLinkAbout = ['/' + $localize`about`]; - public routerLinkFeatures = ['/' + $localize`features`]; + public routerLinkAbout = ['/' + $localize`:snake-case:about`]; + public routerLinkFeatures = ['/' + $localize`:snake-case:features`]; public routerLinkResourcesPersonalFinanceTools = [ - '/' + $localize`resources`, + '/' + $localize`:snake-case:resources`, 'personal-finance-tools' ]; public tags: string[]; diff --git a/apps/client/src/app/pages/resources/resources-page.component.ts b/apps/client/src/app/pages/resources/resources-page.component.ts index 23c5bf5eb..51172c0de 100644 --- a/apps/client/src/app/pages/resources/resources-page.component.ts +++ b/apps/client/src/app/pages/resources/resources-page.component.ts @@ -14,9 +14,9 @@ import { Subject } from 'rxjs'; export class ResourcesPageComponent implements OnInit { public hasPermissionForSubscription: boolean; public info: InfoItem; - public routerLinkFaq = ['/' + $localize`faq`]; + public routerLinkFaq = ['/' + $localize`:snake-case:faq`]; public routerLinkResourcesPersonalFinanceTools = [ - '/' + $localize`resources`, + '/' + $localize`:snake-case:resources`, 'personal-finance-tools' ]; diff --git a/libs/ui/src/lib/membership-card/membership-card.component.ts b/libs/ui/src/lib/membership-card/membership-card.component.ts index f82dee3f1..b19072946 100644 --- a/libs/ui/src/lib/membership-card/membership-card.component.ts +++ b/libs/ui/src/lib/membership-card/membership-card.component.ts @@ -22,5 +22,5 @@ export class GfMembershipCardComponent { @Input() public expiresAt: string; @Input() public name: string; - public routerLinkPricing = ['/' + $localize`pricing`]; + public routerLinkPricing = ['/' + $localize`:snake-case:pricing`]; }