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

* Fix default locale

* Update changelog
pull/3461/head
Thomas Kaul 5 months ago committed by GitHub
parent 9c4e22978d
commit 6d941500cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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`) - Improved the language localization for German (`de`)
- Upgraded `ng-extract-i18n-merge` from version `2.10.0` to `2.12.0` - 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 ## 2.84.0 - 2024-06-01
### Added ### Added

@ -27,7 +27,7 @@ export class GfValueComponent implements OnChanges {
@Input() isCurrency = false; @Input() isCurrency = false;
@Input() isDate = false; @Input() isDate = false;
@Input() isPercent = false; @Input() isPercent = false;
@Input() locale = getLocale(); @Input() locale: string;
@Input() position = ''; @Input() position = '';
@Input() precision: number | undefined; @Input() precision: number | undefined;
@Input() size: 'large' | 'medium' | 'small' = 'small'; @Input() size: 'large' | 'medium' | 'small' = 'small';
@ -135,6 +135,7 @@ export class GfValueComponent implements OnChanges {
this.formattedValue = ''; this.formattedValue = '';
this.isNumber = false; this.isNumber = false;
this.isString = false; this.isString = false;
this.locale = this.locale || getLocale();
this.useAbsoluteValue = false; this.useAbsoluteValue = false;
} }
} }

Loading…
Cancel
Save