From ad92c763cb433f6150dc7ae246d195732a007dee Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 23 Jul 2026 20:10:46 +0200 Subject: [PATCH] Bugfix/localization of FIRE page (#7401) * Fix localization of FIRE page * Update changelog --- CHANGELOG.md | 2 + .../portfolio/fire/fire-page.component.ts | 15 ++ .../app/pages/portfolio/fire/fire-page.html | 150 ++++++++---------- apps/client/src/locales/messages.ca.xlf | 22 +-- apps/client/src/locales/messages.de.xlf | 22 +-- apps/client/src/locales/messages.es.xlf | 22 +-- apps/client/src/locales/messages.fr.xlf | 22 +-- apps/client/src/locales/messages.it.xlf | 22 +-- apps/client/src/locales/messages.ja.xlf | 22 +-- apps/client/src/locales/messages.ko.xlf | 22 +-- apps/client/src/locales/messages.nl.xlf | 22 +-- apps/client/src/locales/messages.pl.xlf | 22 +-- apps/client/src/locales/messages.pt.xlf | 22 +-- apps/client/src/locales/messages.tr.xlf | 22 +-- apps/client/src/locales/messages.uk.xlf | 22 +-- apps/client/src/locales/messages.xlf | 18 +-- apps/client/src/locales/messages.zh.xlf | 22 +-- libs/common/src/lib/helper.ts | 13 ++ .../fire-calculator.component.html | 6 +- .../fire-calculator.component.ts | 15 +- 20 files changed, 150 insertions(+), 355 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49da55d4f..cdf6e4718 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,10 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Recomputed the portfolio snapshot calculation in the background on a portfolio change - Improved the deduplication of the portfolio snapshot calculation jobs by considering the filters - Refactored the deprecated animation providers (`provideAnimations()` and `provideNoopAnimations()`) +- Improved the language localization for German (`de`) - Improved the language localization for Polish (`pl`) ### Fixed +- Fixed an issue with the localization in the _FIRE_ page - Improved the spacing in the testimonial section on the landing page ## 3.32.0 - 2026-07-22 diff --git a/apps/client/src/app/pages/portfolio/fire/fire-page.component.ts b/apps/client/src/app/pages/portfolio/fire/fire-page.component.ts index e7b694819..b7ef8b302 100644 --- a/apps/client/src/app/pages/portfolio/fire/fire-page.component.ts +++ b/apps/client/src/app/pages/portfolio/fire/fire-page.component.ts @@ -1,6 +1,7 @@ import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; import { SubscriptionType } from '@ghostfolio/common/enums'; +import { formatMonthAndYear } from '@ghostfolio/common/helper'; import { FireCalculationCompleteEvent, FireWealth, @@ -77,6 +78,20 @@ export class GfFirePageComponent implements OnInit { ); private readonly userService = inject(UserService); + protected get retirementDateLabel(): string { + const retirementDate = + this.user?.settings?.retirementDate ?? this.retirementDate; + + if (!retirementDate) { + return ''; + } + + return formatMonthAndYear({ + date: new Date(retirementDate), + locale: this.user?.settings?.locale + }); + } + public ngOnInit() { this.isLoading = true; diff --git a/apps/client/src/app/pages/portfolio/fire/fire-page.html b/apps/client/src/app/pages/portfolio/fire/fire-page.html index 2730b35cd..3bc62dd95 100644 --- a/apps/client/src/app/pages/portfolio/fire/fire-page.html +++ b/apps/client/src/app/pages/portfolio/fire/fire-page.html @@ -66,47 +66,38 @@