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

* Fix default locale

* Update changelog
This commit is contained in:
Thomas Kaul
2024-06-06 17:22:23 +02:00
committed by GitHub
parent 9c4e22978d
commit 6d941500cd
2 changed files with 6 additions and 1 deletions

View File

@@ -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;
}
}