From 338a1e92340f6d6128969348e01241532a39814d Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 2 Jun 2024 17:26:46 +0200 Subject: [PATCH] Fix default locale --- libs/ui/src/lib/value/value.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.ts index 28cb3c90a..7dc427805 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; } }