Skip to content

Commit

Permalink
set locale to current selected
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Sep 17, 2024
1 parent a71c898 commit c9c0d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
<div class="row justify-content-center align-items-start">
<div class="form-group col col-md-3 border border-top-0 border-bottom-0 border-end-0 border-secondary">
<?php
$options = ['locale' => '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',
Expand Down

0 comments on commit c9c0d96

Please sign in to comment.