From 42d95965cecd8b67ffc712d751d1d6c389bd7bcb Mon Sep 17 00:00:00 2001 From: Toni Rudolf Date: Thu, 17 Aug 2023 09:23:33 +0200 Subject: [PATCH] Convert locale to use - instead of _ from symfony --- src/Type/BasePickerType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/BasePickerType.php b/src/Type/BasePickerType.php index dc35100d..0ccac101 100644 --- a/src/Type/BasePickerType.php +++ b/src/Type/BasePickerType.php @@ -253,7 +253,7 @@ protected function getCommonDatepickerDefaults(): array 'theme' => 'light', ], 'localization' => [ - 'locale' => $this->locale, + 'locale' => str_replace('_', '-', $this->locale), ], ]; }