Skip to content

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

Bugfix/fix default locale in value component (#3454)

Thomas Kaul6d941500cdee
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e2d47440b1..c9e33c21b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the language localization for German (`de`)
- Upgraded `ng-extract-i18n-merge` from version `2.10.0` to `2.12.0`
+### Fixed
+
+- Fixed an issue with the default locale in the value component
+
## 2.84.0 - 2024-06-01
### Added
diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.ts
index 28cb3c90a4..7dc427805e 100644
--- a/libs/ui/src/lib/value/value.component.ts
+++ b/libs/ui/src/lib/value/value.component.ts
@@ -27,7 +27,7 @@ export class GfValueComponent implements OnChanges {
@Input() isCurrency = false;
@Input() isDate = false;
@Input() isPercent = false;
- @Input() locale = getLocale();
+ @Input() locale: string;
@Input() position = '';
@Input() precision: number | undefined;
@Input() size: 'large' | 'medium' | 'small' = 'small';
@@ -135,6 +135,7 @@ export class GfValueComponent implements OnChanges {
this.formattedValue = '';
this.isNumber = false;
this.isString = false;
+ this.locale = this.locale || getLocale();
this.useAbsoluteValue = false;
}
}