themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.29k stars 708 forks source link

Setting language for Datepicker has no effect #911

Open PascalHonegger opened 4 days ago

PascalHonegger commented 4 days ago

Describe the bug Setting a language for the datepicker (e.g. de) has no effect, as the picker will always only show english labels. This contradicts the API documentation.

340957 commented 1 day ago

bump

In the Symfony configuration:

import 'flowbite';

<input type="text" id="input_field_date_startDate" name="input_field_date[startDate]" required="required" datepicker="" datepicker-orientation="top right" datepicker-language="nl" datepicker-autohide="" datepicker-format="dd-mm-yyyy" class="p-3 pl-8 w-full placeholder:text-gray-500 placeholder:text-sm rounded-lg border border-gray-200 text-base min-w-full h-11 focus:border-primary-700 focus:outline-none focus:ring-0 datepicker-input" placeholder="Kies start datum" value="02-02-2024">

Attributes working: datepicker-orientation': 'top left', 'datepicker-autohide', 'datepicker-format': 'dd-mm-yyyy' Attribute not working: 'datepicker-language': 'nl'