From 95bc84956e97cabfa0ff391f1c1371f87ae5751f Mon Sep 17 00:00:00 2001
From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
Date: Sat, 28 Oct 2023 15:39:01 +0200
Subject: [PATCH] Feature/localize keywords of meta data (#2555)
* Localize keywords
* Update changelog
---
CHANGELOG.md | 1 +
.../middlewares/html-template.middleware.ts | 4 ++
apps/client/src/app/pages/i18n/i18n-page.html | 4 ++
apps/client/src/index.html | 5 +--
apps/client/src/locales/messages.de.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.es.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.fr.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.it.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.nl.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.pt.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.tr.xlf | 40 +++++++++++++------
apps/client/src/locales/messages.xlf | 38 ++++++++++++------
12 files changed, 232 insertions(+), 100 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c3ff6246f..e2be15252 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the usability and validation in the cash balance transfer from one to another account
+- Improved the localized meta data (keywords) in `html` files
## 2.15.0 - 2023-10-26
diff --git a/apps/api/src/middlewares/html-template.middleware.ts b/apps/api/src/middlewares/html-template.middleware.ts
index 24b8cf01b..ba5112dac 100644
--- a/apps/api/src/middlewares/html-template.middleware.ts
+++ b/apps/api/src/middlewares/html-template.middleware.ts
@@ -127,6 +127,10 @@ export const HtmlTemplateMiddleware = async (
}),
featureGraphicPath:
locales[path]?.featureGraphicPath ?? 'assets/cover.png',
+ keywords: i18nService.getTranslation({
+ languageCode,
+ id: 'metaKeywords'
+ }),
title:
locales[path]?.title ??
`${title} – ${i18nService.getTranslation({
diff --git a/apps/client/src/app/pages/i18n/i18n-page.html b/apps/client/src/app/pages/i18n/i18n-page.html
index eb9dc64af..b091ed4ba 100644
--- a/apps/client/src/app/pages/i18n/i18n-page.html
+++ b/apps/client/src/app/pages/i18n/i18n-page.html
@@ -5,6 +5,10 @@
Ghostfolio is a personal finance dashboard to keep track of your assets
like stocks, ETFs or cryptocurrencies across multiple platforms.
+
+ app, asset, cryptocurrency, dashboard, etf, finance, management,
+ performance, portfolio, software, stock, trading, wealth, web3
+
Open Source Wealth Management Software
diff --git a/apps/client/src/index.html b/apps/client/src/index.html
index eabc42f94..47f2c3d1a 100644
--- a/apps/client/src/index.html
+++ b/apps/client/src/index.html
@@ -6,10 +6,7 @@
-
+
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 104
+ 105
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
@@ -122,7 +122,7 @@
Name
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 33
+ 34
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
@@ -166,7 +166,7 @@
Gesamt
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 49
+ 50
libs/ui/src/lib/activities-table/activities-table.component.html
@@ -178,11 +178,11 @@
Wert
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 156
+ 157
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 191
+ 192
apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
@@ -234,7 +234,7 @@
Bearbeiten
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 257
+ 258
apps/client/src/app/components/admin-platform/admin-platform.component.html
@@ -254,7 +254,7 @@
Löschen
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 265
+ 266
apps/client/src/app/components/admin-market-data/admin-market-data.html
@@ -1904,7 +1904,7 @@
Währung
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 59
+ 60
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
@@ -1932,7 +1932,7 @@
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 121
+ 122
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
@@ -1948,7 +1948,7 @@
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 76
+ 77
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
@@ -10628,7 +10628,7 @@
Cash-Bestand Transfer
apps/client/src/app/components/accounts-table/accounts-table.component.html
- 8
+ 9
apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
@@ -10932,7 +10932,23 @@
Open Source Software für die Vermögensverwaltung
apps/client/src/app/pages/i18n/i18n-page.html
- 8
+ 12
+
+
+
+
+ Oops, transfer cash balance has failed.
+
+ apps/client/src/app/pages/accounts/accounts-page.component.ts
+ 305
+
+
+
+
+ aktie, app, asset, dashboard, etf, finanzen, kryptowährung, management, performance, portfolio, software, trading, vermögen, web3
+
+ apps/client/src/app/pages/i18n/i18n-page.html
+ 8,11