From 551ee15745cacd6035d930bc6b766d5ab097e569 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 21 Aug 2022 09:53:30 +0200 Subject: [PATCH] Simplify locales --- apps/client/src/app/app.component.html | 4 ++-- apps/client/src/app/components/admin-jobs/admin-jobs.html | 2 +- .../components/admin-market-data/admin-market-data.html | 2 +- .../src/app/components/admin-overview/admin-overview.html | 4 ++-- .../src/app/components/header/header.component.html | 4 ++-- apps/client/src/app/core/http-response.interceptor.ts | 8 ++++++-- .../app/pages/webauthn/webauthn-page-routing.module.ts | 2 +- 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html index 04d3d01ca..4525930cf 100644 --- a/apps/client/src/app/app.component.html +++ b/apps/client/src/app/app.component.html @@ -24,8 +24,8 @@ class="cursor-pointer d-inline-block info-message px-3 py-2" (click)="onCreateAccount()" > - You are using the Live Demo. - Create Account + You are using the Live Demo. + Create Account
- # + # Type Symbol Data Source diff --git a/apps/client/src/app/components/admin-market-data/admin-market-data.html b/apps/client/src/app/components/admin-market-data/admin-market-data.html index 2000e7c47..654a692a6 100644 --- a/apps/client/src/app/components/admin-market-data/admin-market-data.html +++ b/apps/client/src/app/components/admin-market-data/admin-market-data.html @@ -52,7 +52,7 @@ [disabled]="item.activityCount !== 0" (click)="onDeleteProfileData({dataSource: item.dataSource, symbol: item.symbol})" > - Delete Profile Data + Delete diff --git a/apps/client/src/app/components/admin-overview/admin-overview.html b/apps/client/src/app/components/admin-overview/admin-overview.html index d510582c3..76aab924b 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.html +++ b/apps/client/src/app/components/admin-overview/admin-overview.html @@ -8,7 +8,7 @@
{{ userCount }}
-
Transaction Count
+
Activity Count
{{ transactionCount }} ({{ transactionCount / userCount | number @@ -17,7 +17,7 @@
-
Data Gathering
+
Data Management
diff --git a/apps/client/src/app/components/header/header.component.html b/apps/client/src/app/components/header/header.component.html index c697921bf..336bc6d24 100644 --- a/apps/client/src/app/components/header/header.component.html +++ b/apps/client/src/app/components/header/header.component.html @@ -286,7 +286,7 @@ > Get Started + >Get started diff --git a/apps/client/src/app/core/http-response.interceptor.ts b/apps/client/src/app/core/http-response.interceptor.ts index bd418405b..84390b44c 100644 --- a/apps/client/src/app/core/http-response.interceptor.ts +++ b/apps/client/src/app/core/http-response.interceptor.ts @@ -56,7 +56,9 @@ export class HttpResponseInterceptor implements HttpInterceptor { if (!this.snackBarRef) { if (this.info.isReadOnlyMode) { this.snackBarRef = this.snackBar.open( - $localize`This feature is currently unavailable. Please try again later.`, + $localize`This feature is currently unavailable.` + + ' ' + + $localize`Please try again later.`, undefined, { duration: 6000 } ); @@ -81,7 +83,9 @@ export class HttpResponseInterceptor implements HttpInterceptor { } else if (error.status === StatusCodes.INTERNAL_SERVER_ERROR) { if (!this.snackBarRef) { this.snackBarRef = this.snackBar.open( - $localize`Oops! Something went wrong. Please try again later.`, + $localize`Oops! Something went wrong.` + + ' ' + + $localize`Please try again later.`, $localize`Okay`, { duration: 6000 } ); diff --git a/apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts b/apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts index 163ec24af..bf2118b92 100644 --- a/apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts +++ b/apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts @@ -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: $localize`Login` } + { component: WebauthnPageComponent, path: '', title: $localize`Sign in` } ]; @NgModule({