Bugfix/fix missing localization for alias fallback on public page (#4610)

* Fix missing localization

* Update changelog
This commit is contained in:
Thomas Kaul
2025-04-27 14:11:37 +02:00
committed by GitHub
parent b2dcb1e7ac
commit a5e13d30ae
3 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Improved the file selector of the activities import functionality to accept case-insensitive file extensions (`.CSV` and `.JSON`) - Improved the file selector of the activities import functionality to accept case-insensitive file extensions (`.CSV` and `.JSON`)
- Fixed the missing localization for "someone" on the public page
## 2.155.0 - 2025-04-23 ## 2.155.0 - 2025-04-23

View File

@ -30,6 +30,7 @@ export class PublicPageComponent implements OnInit {
public countries: { public countries: {
[code: string]: { name: string; value: number }; [code: string]: { name: string; value: number };
}; };
public defaultAlias = $localize`someone`;
public deviceType: string; public deviceType: string;
public holdings: PublicPortfolioResponse['holdings'][string][]; public holdings: PublicPortfolioResponse['holdings'][string][];
public markets: { public markets: {

View File

@ -2,7 +2,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h1 class="h4 mb-3 text-center" i18n> <h1 class="h4 mb-3 text-center" i18n>
Hello, {{ publicPortfolioDetails?.alias ?? 'someone' }} has shared a Hello, {{ publicPortfolioDetails?.alias ?? defaultAlias }} has shared a
<strong>Portfolio</strong> with you! <strong>Portfolio</strong> with you!
</h1> </h1>
</div> </div>