Browse Source
Feature/tag route titles with template literal strings (#1155)
* Tagged template literal strings
* Update changelog
pull/1156/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with
28 additions and
24 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/header/header.component.ts
-
apps/client/src/app/pages/about/about-page-routing.module.ts
-
apps/client/src/app/pages/about/changelog/changelog-page-routing.module.ts
-
apps/client/src/app/pages/about/privacy-policy/privacy-policy-page-routing.module.ts
-
apps/client/src/app/pages/account/account-page-routing.module.ts
-
apps/client/src/app/pages/accounts/accounts-page-routing.module.ts
-
apps/client/src/app/pages/admin/admin-page-routing.module.ts
-
apps/client/src/app/pages/blog/blog-page-routing.module.ts
-
apps/client/src/app/pages/faq/faq-page-routing.module.ts
-
apps/client/src/app/pages/features/features-page-routing.module.ts
-
apps/client/src/app/pages/home/home-page-routing.module.ts
-
apps/client/src/app/pages/markets/markets-page-routing.module.ts
-
apps/client/src/app/pages/portfolio/allocations/allocations-page-routing.module.ts
-
apps/client/src/app/pages/portfolio/analysis/analysis-page-routing.module.ts
-
apps/client/src/app/pages/portfolio/fire/fire-page-routing.module.ts
-
apps/client/src/app/pages/portfolio/holdings/holdings-page-routing.module.ts
-
apps/client/src/app/pages/portfolio/transactions/transactions-page-routing.module.ts
-
apps/client/src/app/pages/pricing/pricing-page-routing.module.ts
-
apps/client/src/app/pages/public/public-page-routing.module.ts
-
apps/client/src/app/pages/register/register-page-routing.module.ts
-
apps/client/src/app/pages/resources/resources-page-routing.module.ts
-
apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts
-
apps/client/src/app/pages/zen/zen-page-routing.module.ts
-
apps/client/src/locales/messages.xlf
|
|
@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Tagged template literal strings in components for localization with `$localize` |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Tagged template literal strings in components for localization with `$localize` |
|
|
|
|
|
|
|
## 1.179.5 - 15.08.2022 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -109,7 +109,7 @@ export class HeaderComponent implements OnChanges { |
|
|
|
data: { |
|
|
|
accessToken: '', |
|
|
|
hasPermissionToUseSocialLogin: this.hasPermissionForSocialLogin, |
|
|
|
title: 'Sign in' |
|
|
|
title: $localize`Sign in` |
|
|
|
}, |
|
|
|
width: '30rem' |
|
|
|
}); |
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: AboutPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'About' |
|
|
|
title: $localize`About` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: ChangelogPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Changelog & License' |
|
|
|
title: $localize`Changelog & License` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: PrivacyPolicyPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Privacy Policy' |
|
|
|
title: $localize`Privacy Policy` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: AccountPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'My Ghostfolio' |
|
|
|
title: $localize`My Ghostfolio` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: AccountsPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Accounts' |
|
|
|
title: $localize`Accounts` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ const routes: Routes = [ |
|
|
|
], |
|
|
|
component: AdminPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Admin Control' |
|
|
|
title: $localize`Admin Control` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: BlogPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Blog' |
|
|
|
title: $localize`Blog` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: FaqPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'FAQ' |
|
|
|
title: $localize`FAQ` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: FeaturesPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Features' |
|
|
|
title: $localize`Features` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ const routes: Routes = [ |
|
|
|
], |
|
|
|
component: HomePageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Overview' |
|
|
|
title: $localize`Overview` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: MarketsPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Markets' |
|
|
|
title: $localize`Markets` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: AllocationsPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Allocations' |
|
|
|
title: $localize`Allocations` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: AnalysisPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Analysis' |
|
|
|
title: $localize`Analysis` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: FirePageComponent, |
|
|
|
path: '', |
|
|
|
title: 'FIRE' |
|
|
|
title: $localize`FIRE` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: HoldingsPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Holdings' |
|
|
|
title: $localize`Holdings` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: TransactionsPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Activities' |
|
|
|
title: $localize`Activities` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: PricingPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Pricing' |
|
|
|
title: $localize`Pricing` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: PublicPageComponent, |
|
|
|
path: ':id', |
|
|
|
title: 'Portfolio' |
|
|
|
title: $localize`Portfolio` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: RegisterPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Registration' |
|
|
|
title: $localize`Registration` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
component: ResourcesPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Resources' |
|
|
|
title: $localize`Resources` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -3,7 +3,7 @@ import { RouterModule, Routes } from '@angular/router'; |
|
|
|
import { WebauthnPageComponent } from '@ghostfolio/client/pages/webauthn/webauthn-page.component'; |
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
{ component: WebauthnPageComponent, path: '', title: 'Login' } |
|
|
|
{ component: WebauthnPageComponent, path: '', title: $localize`Login` } |
|
|
|
]; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
|
|
@ -16,7 +16,7 @@ const routes: Routes = [ |
|
|
|
], |
|
|
|
component: ZenPageComponent, |
|
|
|
path: '', |
|
|
|
title: 'Overview' |
|
|
|
title: $localize`Overview` |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
@ -2453,4 +2453,4 @@ |
|
|
|
</trans-unit> |
|
|
|
</body> |
|
|
|
</file> |
|
|
|
</xliff> |
|
|
|
</xliff> |
|
|
|