Browse Source

Fix default locale

pull/3454/head
Thomas Kaul 1 year ago
parent
commit
338a1e9234
  1. 3
      libs/ui/src/lib/value/value.component.ts

3
libs/ui/src/lib/value/value.component.ts

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