Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/trim text in i18n service (#2520)

Thomas Kaul1666486940c1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c909a68b4b..4c0c70bb60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the error message in the activities import for `csv` files
- Allowed to edit today’s historical market data in the asset profile details dialog of the admin control panel
+### Fixed
+
+- Trimmed text in `i18n` service to query `messages.*.xlf` files on the server
+
## 2.13.0 - 2023-10-20
### Added
diff --git a/apps/api/src/services/i18n/i18n.service.ts b/apps/api/src/services/i18n/i18n.service.ts
index 35c7b638dd..39dab2d06b 100644
--- a/apps/api/src/services/i18n/i18n.service.ts
+++ b/apps/api/src/services/i18n/i18n.service.ts
@@ -38,7 +38,7 @@ export class I18nService {
);
}
- return translatedText;
+ return translatedText.trim();
}
private loadFiles() {