From 1666486940c12aaec4e7ef301c9fac3c7f72f89f Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 20 Oct 2023 22:36:03 +0200 Subject: [PATCH] Bugfix/trim text in i18n service (#2520) * Trim text * Update changelog --- CHANGELOG.md | 4 ++++ apps/api/src/services/i18n/i18n.service.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c909a68b4..4c0c70bb6 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 35c7b638d..39dab2d06 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() {