From c9c0d96a9d61a68cabe30ae77a9e51b59e967a82 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Wed, 18 Sep 2024 00:00:01 +0200 Subject: [PATCH] set locale to current selected --- admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin.php b/admin.php index ff2bf3f..004a9d5 100644 --- a/admin.php +++ b/admin.php @@ -61,8 +61,8 @@
'it']; // set the locale to Italian - $CalendarSelect = new CalendarSelect($options); // use the default API url, but set the locale to Italian + $options = ['locale' => $i18n->locale]; + $CalendarSelect = new CalendarSelect($options); echo $CalendarSelect->getSelect([ 'class' => 'form-select', 'id' => 'APICalendarSelect',