diff --git a/CHANGELOG.md b/CHANGELOG.md
index 627a7d7d1..4f0cdabbb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded the _Internet Identity_ dependencies from version `0.12.1` to `0.15.1`
- Upgraded `prisma` from version `4.7.1` to `4.8.0`
+### Fixed
+
+- Fixed the language localization of the account type
+
## 1.221.0 - 2022-12-26
### Added
diff --git a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts
index a0c11bce8..250b89498 100644
--- a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts
+++ b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts
@@ -12,7 +12,7 @@ import { UserService } from '@ghostfolio/client/services/user/user.service';
import { downloadAsFile } from '@ghostfolio/common/helper';
import { User } from '@ghostfolio/common/interfaces';
import { OrderWithAccount } from '@ghostfolio/common/types';
-import { AccountType } from '@prisma/client';
+import { translate } from '@ghostfolio/ui/i18n';
import { format, parseISO } from 'date-fns';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
@@ -27,7 +27,7 @@ import { AccountDetailDialogParams } from './interfaces/interfaces';
styleUrls: ['./account-detail-dialog.component.scss']
})
export class AccountDetailDialog implements OnDestroy, OnInit {
- public accountType: AccountType;
+ public accountType: string;
public name: string;
public orders: OrderWithAccount[];
public platformName: string;
@@ -59,7 +59,7 @@ export class AccountDetailDialog implements OnDestroy, OnInit {
.fetchAccount(this.data.accountId)
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe(({ accountType, name, Platform, valueInBaseCurrency }) => {
- this.accountType = accountType;
+ this.accountType = translate(accountType);
this.name = name;
this.platformName = Platform?.name ?? '-';
this.valueInBaseCurrency = valueInBaseCurrency;
diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlf
index 23fa0515d..19a2a3a50 100644
--- a/apps/client/src/locales/messages.de.xlf
+++ b/apps/client/src/locales/messages.de.xlf
@@ -54,7 +54,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 56
+ 78
@@ -126,7 +126,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 93
+ 115
libs/ui/src/lib/holdings-table/holdings-table.component.html
@@ -142,7 +142,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 51
+ 73
@@ -162,11 +162,11 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 235
+ 257
libs/ui/src/lib/activities-table/activities-table.component.html
- 270
+ 292
libs/ui/src/lib/holdings-table/holdings-table.component.html
@@ -182,7 +182,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 404
+ 426
@@ -202,7 +202,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 420
+ 442
@@ -342,7 +342,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 44
+ 66
@@ -378,7 +378,11 @@
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
- 226,230
+ 248,252
+
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html
+ 87,91
apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.html
@@ -406,7 +410,7 @@
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
- 233,238
+ 255,260
@@ -1138,7 +1142,7 @@
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
- 209,211
+ 207,210
@@ -1252,6 +1256,10 @@
apps/client/src/app/core/http-response.interceptor.ts
89
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
+ 66,62
+
@@ -1370,7 +1378,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 301
+ 323
@@ -1558,7 +1566,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 123
+ 145
@@ -1878,7 +1886,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 144
+ 166
@@ -1890,7 +1898,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 173
+ 195
@@ -1906,7 +1914,7 @@
libs/ui/src/lib/activities-table/activities-table.component.html
- 202
+ 224
@@ -1962,7 +1970,7 @@
Der Import wurde abgeschlossen
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
- 167,166
+ 55,54
@@ -2098,7 +2106,7 @@
Geplant
libs/ui/src/lib/activities-table/activities-table.component.html
- 103
+ 125
@@ -2106,7 +2114,7 @@
Aktivitäten importieren
libs/ui/src/lib/activities-table/activities-table.component.html
- 367
+ 389
@@ -2114,7 +2122,7 @@
Aktivitäten exportieren
libs/ui/src/lib/activities-table/activities-table.component.html
- 377
+ 399
@@ -2122,7 +2130,7 @@
Geplante Aktivitäten als ICS exportieren
libs/ui/src/lib/activities-table/activities-table.component.html
- 387
+ 409
@@ -2130,7 +2138,7 @@
Kopieren
libs/ui/src/lib/activities-table/activities-table.component.html
- 408
+ 430
@@ -2138,7 +2146,7 @@
Geplante Aktivität als ICS exportieren
libs/ui/src/lib/activities-table/activities-table.component.html
- 416
+ 438
@@ -2146,7 +2154,7 @@
Möchtest du diese Aktivität wirklich löschen?
libs/ui/src/lib/activities-table/activities-table.component.ts
- 149
+ 196
@@ -2256,6 +2264,10 @@
apps/client/src/app/core/http-response.interceptor.ts
88
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
+ 65,62
+
@@ -2264,6 +2276,10 @@
apps/client/src/app/core/http-response.interceptor.ts
86
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
+ 63
+
@@ -2514,7 +2530,7 @@
Filtern nach Konto, Währung, Symbol oder Typ...
libs/ui/src/lib/activities-table/activities-table.component.ts
- 321
+ 376
@@ -2686,7 +2702,7 @@
Symbol
libs/ui/src/lib/i18n.ts
- 9
+ 10
@@ -2694,7 +2710,7 @@
Tag
libs/ui/src/lib/i18n.ts
- 10
+ 11
@@ -2702,7 +2718,7 @@
Bargeld
libs/ui/src/lib/i18n.ts
- 13
+ 14
@@ -2710,7 +2726,7 @@
Rohstoff
libs/ui/src/lib/i18n.ts
- 14
+ 15
@@ -2718,7 +2734,7 @@
Anteilskapital
libs/ui/src/lib/i18n.ts
- 15
+ 16
@@ -2726,7 +2742,7 @@
Feste Einkünfte
libs/ui/src/lib/i18n.ts
- 16
+ 17
@@ -2734,7 +2750,7 @@
Immobilien
libs/ui/src/lib/i18n.ts
- 17
+ 18
@@ -2742,7 +2758,7 @@
Anleihe
libs/ui/src/lib/i18n.ts
- 20
+ 21
@@ -2750,7 +2766,7 @@
Kryptowährung
libs/ui/src/lib/i18n.ts
- 21
+ 22
@@ -2758,7 +2774,7 @@
ETF
libs/ui/src/lib/i18n.ts
- 22
+ 23
@@ -2766,7 +2782,7 @@
Investmentfonds
libs/ui/src/lib/i18n.ts
- 23
+ 24
@@ -2774,7 +2790,7 @@
Edelmetall
libs/ui/src/lib/i18n.ts
- 24
+ 25
@@ -2782,7 +2798,7 @@
Privates Beteiligungskapital
libs/ui/src/lib/i18n.ts
- 25
+ 26
@@ -2790,7 +2806,7 @@
Aktie
libs/ui/src/lib/i18n.ts
- 26
+ 27
@@ -2830,7 +2846,7 @@
Nordamerika
libs/ui/src/lib/i18n.ts
- 32
+ 33
@@ -2838,7 +2854,7 @@
Afrika
libs/ui/src/lib/i18n.ts
- 29
+ 30
@@ -2846,7 +2862,7 @@
Asien
libs/ui/src/lib/i18n.ts
- 30
+ 31
@@ -2854,7 +2870,7 @@
Europa
libs/ui/src/lib/i18n.ts
- 31
+ 32
@@ -2862,7 +2878,7 @@
Ozeanien
libs/ui/src/lib/i18n.ts
- 33
+ 34
@@ -2870,7 +2886,7 @@
Südamerika
libs/ui/src/lib/i18n.ts
- 34
+ 35
@@ -2894,7 +2910,7 @@
Zurück
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html
- 61,67
+ 79,83
@@ -2969,6 +2985,30 @@
102
+
+
+ Daten validieren...
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
+ 86
+
+
+
+
+ Importieren
+
+ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html
+ 94,99
+
+
+
+
+ Wertschriften
+
+ libs/ui/src/lib/i18n.ts
+ 9
+
+