Browse Source

Simplify locales

pull/1178/head
Thomas 3 years ago
parent
commit
551ee15745
  1. 4
      apps/client/src/app/app.component.html
  2. 2
      apps/client/src/app/components/admin-jobs/admin-jobs.html
  3. 2
      apps/client/src/app/components/admin-market-data/admin-market-data.html
  4. 4
      apps/client/src/app/components/admin-overview/admin-overview.html
  5. 4
      apps/client/src/app/components/header/header.component.html
  6. 8
      apps/client/src/app/core/http-response.interceptor.ts
  7. 2
      apps/client/src/app/pages/webauthn/webauthn-page-routing.module.ts

4
apps/client/src/app/app.component.html

@ -24,8 +24,8 @@
class="cursor-pointer d-inline-block info-message px-3 py-2" class="cursor-pointer d-inline-block info-message px-3 py-2"
(click)="onCreateAccount()" (click)="onCreateAccount()"
> >
<span i18n>You are using the Live Demo.</span> <span>You are using the Live Demo.</span>
<span class="a ml-2" i18n>Create Account</span> <span class="a ml-2">Create Account</span>
</div></a </div></a
> >
<div <div

2
apps/client/src/app/components/admin-jobs/admin-jobs.html

@ -24,7 +24,7 @@
<table class="gf-table w-100"> <table class="gf-table w-100">
<thead> <thead>
<tr class="mat-header-row"> <tr class="mat-header-row">
<th class="mat-header-cell px-1 py-2 text-right" i18n>#</th> <th class="mat-header-cell px-1 py-2 text-right">#</th>
<th class="mat-header-cell px-1 py-2" i18n>Type</th> <th class="mat-header-cell px-1 py-2" i18n>Type</th>
<th class="mat-header-cell px-1 py-2" i18n>Symbol</th> <th class="mat-header-cell px-1 py-2" i18n>Symbol</th>
<th class="mat-header-cell px-1 py-2" i18n>Data Source</th> <th class="mat-header-cell px-1 py-2" i18n>Data Source</th>

2
apps/client/src/app/components/admin-market-data/admin-market-data.html

@ -52,7 +52,7 @@
[disabled]="item.activityCount !== 0" [disabled]="item.activityCount !== 0"
(click)="onDeleteProfileData({dataSource: item.dataSource, symbol: item.symbol})" (click)="onDeleteProfileData({dataSource: item.dataSource, symbol: item.symbol})"
> >
<ng-container i18n>Delete Profile Data</ng-container> <ng-container i18n>Delete</ng-container>
</button> </button>
</mat-menu> </mat-menu>
</td> </td>

4
apps/client/src/app/components/admin-overview/admin-overview.html

@ -8,7 +8,7 @@
<div class="w-50">{{ userCount }}</div> <div class="w-50">{{ userCount }}</div>
</div> </div>
<div class="d-flex my-3"> <div class="d-flex my-3">
<div class="w-50" i18n>Transaction Count</div> <div class="w-50" i18n>Activity Count</div>
<div class="w-50"> <div class="w-50">
<ng-container *ngIf="transactionCount"> <ng-container *ngIf="transactionCount">
{{ transactionCount }} ({{ transactionCount / userCount | number {{ transactionCount }} ({{ transactionCount / userCount | number
@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="d-flex my-3"> <div class="d-flex my-3">
<div class="w-50" i18n>Data Gathering</div> <div class="w-50" i18n>Data Management</div>
<div class="w-50"> <div class="w-50">
<div class="overflow-hidden"> <div class="overflow-hidden">
<div class="mb-2"> <div class="mb-2">

4
apps/client/src/app/components/header/header.component.html

@ -286,7 +286,7 @@
><ion-icon name="logo-github"></ion-icon ><ion-icon name="logo-github"></ion-icon
></a> ></a>
<button class="mx-1" mat-flat-button (click)="openLoginDialog()"> <button class="mx-1" mat-flat-button (click)="openLoginDialog()">
<ng-container i18n>Sign In</ng-container> <ng-container i18n>Sign in</ng-container>
</button> </button>
<a <a
*ngIf="currentRoute !== 'register' && !info?.isReadOnlyMode" *ngIf="currentRoute !== 'register' && !info?.isReadOnlyMode"
@ -294,7 +294,7 @@
color="primary" color="primary"
mat-flat-button mat-flat-button
[routerLink]="['/register']" [routerLink]="['/register']"
><ng-container i18n>Get Started</ng-container> ><ng-container i18n>Get started</ng-container>
</a> </a>
</ng-container> </ng-container>
</mat-toolbar> </mat-toolbar>

8
apps/client/src/app/core/http-response.interceptor.ts

@ -56,7 +56,9 @@ export class HttpResponseInterceptor implements HttpInterceptor {
if (!this.snackBarRef) { if (!this.snackBarRef) {
if (this.info.isReadOnlyMode) { if (this.info.isReadOnlyMode) {
this.snackBarRef = this.snackBar.open( 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, undefined,
{ duration: 6000 } { duration: 6000 }
); );
@ -81,7 +83,9 @@ export class HttpResponseInterceptor implements HttpInterceptor {
} else if (error.status === StatusCodes.INTERNAL_SERVER_ERROR) { } else if (error.status === StatusCodes.INTERNAL_SERVER_ERROR) {
if (!this.snackBarRef) { if (!this.snackBarRef) {
this.snackBarRef = this.snackBar.open( 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`, $localize`Okay`,
{ duration: 6000 } { duration: 6000 }
); );

2
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'; import { WebauthnPageComponent } from '@ghostfolio/client/pages/webauthn/webauthn-page.component';
const routes: Routes = [ const routes: Routes = [
{ component: WebauthnPageComponent, path: '', title: $localize`Login` } { component: WebauthnPageComponent, path: '', title: $localize`Sign in` }
]; ];
@NgModule({ @NgModule({

Loading…
Cancel
Save